@Path(value="/admin-external/v1") @ApplicationPath(value="webresources") public class AdminManagementExternalResource extends ApplicationStatusResource
STATUS_URL, TENANTS_URL| Constructor and Description |
|---|
AdminManagementExternalResource(SecureEndpointRegistry secureEndpointRegistry)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
checkAgencies(InputStream document)
check agencies
|
javax.ws.rs.core.Response |
checkDocument(InputStream document)
checkFormat
|
javax.ws.rs.core.Response |
checkObjectGroupEvidenceAudit(String objectGroupId)
launch a traceability audit for the object group
|
javax.ws.rs.core.Response |
checkOperationTraceability(com.fasterxml.jackson.databind.JsonNode query)
Checks a traceability operation
|
javax.ws.rs.core.Response |
checkRules(InputStream document)
checkRules
|
javax.ws.rs.core.Response |
checkUnitEvidenceAudit(String unitId)
launch a traceability audit for the unit
|
javax.ws.rs.core.Response |
createProfiles(InputStream document)
Import a profiles document
|
javax.ws.rs.core.Response |
createProfiles(com.fasterxml.jackson.databind.JsonNode select)
Import a set of profiles
|
javax.ws.rs.core.Response |
downloadProfileFile(String fileId)
Download the profile file
The caller is responsible to close the Response after consuming the inputStream. |
javax.ws.rs.core.Response |
downloadRulesReportAsStream(String opId)
Download report stored by Administration operation (currently administration reports )
|
javax.ws.rs.core.Response |
downloadTraceabilityFile(String fileId)
Download the traceability file
The caller is responsible to close the Response after consuming the inputStream. |
javax.ws.rs.core.Response |
findAccessContracts(com.fasterxml.jackson.databind.JsonNode select)
findAccessContracts using get method
|
javax.ws.rs.core.Response |
findAccessContractsByID(String documentId)
findAccessContractsByID
|
javax.ws.rs.core.Response |
findAccessionRegisterDetail(String documentId,
com.fasterxml.jackson.databind.JsonNode select)
findAccessionRegisterDetail
|
javax.ws.rs.core.Response |
findAgencies(com.fasterxml.jackson.databind.JsonNode select)
findContexts using get method
|
javax.ws.rs.core.Response |
findAgencyByID(String documentId)
findRuleByID
|
javax.ws.rs.core.Response |
findContextById(String documentId)
findContextById
|
javax.ws.rs.core.Response |
findContexts(com.fasterxml.jackson.databind.JsonNode select)
findContexts using get method
|
javax.ws.rs.core.Response |
findFormatByID(String documentId)
findFormatByID
|
javax.ws.rs.core.Response |
findIngestContracts(com.fasterxml.jackson.databind.JsonNode select)
findIngestContracts using get method
|
javax.ws.rs.core.Response |
findIngestContractsByID(String documentId)
findIngestContractsByID
|
javax.ws.rs.core.Response |
findProfiles(com.fasterxml.jackson.databind.JsonNode select)
findProfiles using get method
|
javax.ws.rs.core.Response |
findProfilesByID(String documentId)
findProfilesByID
|
javax.ws.rs.core.Response |
findRuleByID(String documentId)
findRuleByID
|
javax.ws.rs.core.Response |
findSecurityProfileByIdentifier(String identifier)
Find security profile by identifier
|
javax.ws.rs.core.Response |
findSecurityProfiles(com.fasterxml.jackson.databind.JsonNode select)
Find security profiles using get method
|
javax.ws.rs.core.Response |
getAccessionRegister(com.fasterxml.jackson.databind.JsonNode select)
getAccessionRegister using get method
|
javax.ws.rs.core.Response |
getFormats(com.fasterxml.jackson.databind.JsonNode select)
getFormats using get method
|
javax.ws.rs.core.Response |
getOperationProcessExecutionDetails(String id)
get the workflow status
|
javax.ws.rs.core.Response |
getRules(com.fasterxml.jackson.databind.JsonNode select)
getRules using get method
|
javax.ws.rs.core.Response |
getWorkflowDefinitions(javax.ws.rs.core.HttpHeaders headers) |
javax.ws.rs.core.Response |
getWorkFlowExecutionStatus(String id) |
javax.ws.rs.core.Response |
importAccessContracts(com.fasterxml.jackson.databind.JsonNode select)
Import a set of access contracts.
|
javax.ws.rs.core.Response |
importAgenciesFile(javax.ws.rs.core.HttpHeaders headers,
InputStream document)
Import a agencies document
|
javax.ws.rs.core.Response |
importContexts(com.fasterxml.jackson.databind.JsonNode select)
Import a set of contexts
|
javax.ws.rs.core.Response |
importFormat(javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo uriInfo,
InputStream document)
Import a format
|
javax.ws.rs.core.Response |
importIngestContracts(com.fasterxml.jackson.databind.JsonNode select)
Import a set of ingest contracts.
|
javax.ws.rs.core.Response |
importProfileFile(javax.ws.rs.core.UriInfo uriInfo,
String profileMetadataId,
InputStream profileFile)
Import a Profile file document (xsd or rng, ...)
|
javax.ws.rs.core.Response |
importRulesFile(javax.ws.rs.core.HttpHeaders headers,
InputStream document)
Import a rules document
|
javax.ws.rs.core.Response |
importSecurityProfiles(com.fasterxml.jackson.databind.JsonNode document)
Import security profile documents
|
javax.ws.rs.core.Response |
interruptWorkFlowExecution(String id)
Interrupt the process of an operation identified by Id.
|
javax.ws.rs.core.Response |
launchAudit(com.fasterxml.jackson.databind.JsonNode options)
launch Audit
|
javax.ws.rs.core.Response |
listOperationsDetails(javax.ws.rs.core.HttpHeaders headers,
ProcessQuery query) |
javax.ws.rs.core.Response |
listResourceEndpoints()
List secured resource end points
|
javax.ws.rs.core.Response |
updateAccessContract(String identifier,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update access contract
|
javax.ws.rs.core.Response |
updateContext(String identifier,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update context
|
javax.ws.rs.core.Response |
updateIngestContract(String identifier,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update ingest contract
|
javax.ws.rs.core.Response |
updateProfile(String identifier,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update profile
|
javax.ws.rs.core.Response |
updateSecurityProfile(String identifier,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update a security profile
|
javax.ws.rs.core.Response |
updateWorkFlowStatus(javax.ws.rs.core.HttpHeaders headers,
String id)
Update the status of an operation.
|
getServerTenants, statuspublic AdminManagementExternalResource(SecureEndpointRegistry secureEndpointRegistry)
secureEndpointRegistry - endpoint list registry@Path(value="/") @OPTIONS @Produces(value="application/json") public javax.ws.rs.core.Response listResourceEndpoints()
@Path(value="/formatsfilecheck") @POST @Consumes(value="application/octet-stream") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response checkDocument(InputStream document)
document - the document to check@Path(value="/rulesfilecheck") @POST @Consumes(value="application/octet-stream") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response checkRules(InputStream document)
document - the document to check@Path(value="/agenciesfilecheck") @POST @Consumes(value="application/octet-stream") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response checkAgencies(InputStream document)
document - @Path(value="/formats")
@POST
@Consumes(value="application/octet-stream")
@Produces(value="application/json")
public javax.ws.rs.core.Response importFormat(@Context
javax.ws.rs.core.HttpHeaders headers,
@Context
javax.ws.rs.core.UriInfo uriInfo,
InputStream document)
headers - http headersuriInfo - used to construct the created resource and send it back as location in the responsedocument - inputStream representing the data to import@Path(value="/rules")
@POST
@Consumes(value="application/octet-stream")
@Produces(value="application/json")
public javax.ws.rs.core.Response importRulesFile(@Context
javax.ws.rs.core.HttpHeaders headers,
InputStream document)
headers - http headersdocument - inputStream representing the data to import@Path(value="/ingestcontracts") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response importIngestContracts(com.fasterxml.jackson.databind.JsonNode select)
select - the select query to find document@Path(value="/accesscontracts") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response importAccessContracts(com.fasterxml.jackson.databind.JsonNode select)
select - the select query to find document@Path(value="/contexts") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response importContexts(com.fasterxml.jackson.databind.JsonNode select)
select - the select query to find document@Path(value="/profiles") @POST @Consumes(value="application/octet-stream") @Produces(value="application/json") public javax.ws.rs.core.Response createProfiles(InputStream document)
document - inputStream representing the data to import@Path(value="/profiles") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createProfiles(com.fasterxml.jackson.databind.JsonNode select)
select - the select query to find document@Path(value="/profiles/{id:.+}")
@PUT
@Consumes(value="application/octet-stream")
@Produces(value="application/json")
public javax.ws.rs.core.Response importProfileFile(@Context
javax.ws.rs.core.UriInfo uriInfo,
@PathParam(value="id")
String profileMetadataId,
InputStream profileFile)
uriInfo - used to construct the created resource and send it back as location in the responseprofileMetadataId - id of the profile metadataprofileFile - inputStream representing the data to import@GET
@Path(value="/profiles/{id:.+}")
@Produces(value="application/octet-stream")
public javax.ws.rs.core.Response downloadProfileFile(@PathParam(value="id")
String fileId)
fileId - @GET
@Path(value="/traceability/{id}/datafiles")
@Produces(value="application/octet-stream")
public javax.ws.rs.core.Response downloadTraceabilityFile(@PathParam(value="id")
String fileId)
fileId - @Path(value="/formats") @GET @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getFormats(com.fasterxml.jackson.databind.JsonNode select)
select - the select query to find document@Path(value="/rules") @GET @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getRules(com.fasterxml.jackson.databind.JsonNode select)
select - the select query to find document@Path(value="/ingestcontracts") @GET @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response findIngestContracts(com.fasterxml.jackson.databind.JsonNode select)
select - the select query to find document@Path(value="/accesscontracts") @GET @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response findAccessContracts(com.fasterxml.jackson.databind.JsonNode select)
select - the select query to find document@Path(value="/profiles") @GET @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response findProfiles(com.fasterxml.jackson.databind.JsonNode select)
select - the select query to find document@Path(value="/contexts") @GET @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response findContexts(com.fasterxml.jackson.databind.JsonNode select)
select - the select query to find document@Path(value="/agencies")
@POST
@Consumes(value="application/octet-stream")
@Produces(value="application/json")
public javax.ws.rs.core.Response importAgenciesFile(@Context
javax.ws.rs.core.HttpHeaders headers,
InputStream document)
headers - http headersdocument - inputStream representing the data to importInvalidParseOperationException@Path(value="/agencies/{id_document:.+}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response findAgencyByID(@PathParam(value="id_document")
String documentId)
documentId - the document id to find@Path(value="/agencies")
@GET
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response findAgencies(com.fasterxml.jackson.databind.JsonNode select)
throws IOException
select - the select query to find documentIOException@Path(value="/accessionregisters") @GET @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getAccessionRegister(com.fasterxml.jackson.databind.JsonNode select)
select - the select query to find document@Path(value="/formats/{id_document:.+}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response findFormatByID(@PathParam(value="id_document")
String documentId)
documentId - the document id to find@Path(value="/rules/{id_document:.+}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response findRuleByID(@PathParam(value="id_document")
String documentId)
documentId - the document id to find@Path(value="/ingestcontracts/{id_document:.+}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response findIngestContractsByID(@PathParam(value="id_document")
String documentId)
documentId - the document id to find@Path(value="/accesscontracts/{id_document:.+}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response findAccessContractsByID(@PathParam(value="id_document")
String documentId)
documentId - the document id to find@Path(value="/profiles/{id_document:.+}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response findProfilesByID(@PathParam(value="id_document")
String documentId)
documentId - the document id to find@Path(value="/contexts/{id_document:.+}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response findContextById(@PathParam(value="id_document")
String documentId)
documentId - the document id to find@Path(value="/contexts/{identifier:.+}")
@PUT
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response updateContext(@PathParam(value="identifier")
String identifier,
com.fasterxml.jackson.databind.JsonNode queryDsl)
throws AdminManagementClientServerException,
InvalidParseOperationException
identifier - queryDsl - AdminManagementClientServerExceptionInvalidParseOperationException@Path(value="/profiles/{identifier:.+}")
@PUT
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response updateProfile(@PathParam(value="identifier")
String identifier,
com.fasterxml.jackson.databind.JsonNode queryDsl)
throws AdminManagementClientServerException,
InvalidParseOperationException
identifier - queryDsl - AdminManagementClientServerExceptionInvalidParseOperationException@Path(value="/accesscontracts/{identifier:.+}")
@PUT
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response updateAccessContract(@PathParam(value="identifier")
String identifier,
com.fasterxml.jackson.databind.JsonNode queryDsl)
throws AdminManagementClientServerException,
InvalidParseOperationException
identifier - queryDsl - AdminManagementClientServerExceptionInvalidParseOperationException@Path(value="/ingestcontracts/{identifier:.+}")
@PUT
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response updateIngestContract(@PathParam(value="identifier")
String identifier,
com.fasterxml.jackson.databind.JsonNode queryDsl)
throws AdminManagementClientServerException,
InvalidParseOperationException
identifier - queryDsl - AdminManagementClientServerExceptionInvalidParseOperationException@GET
@Path(value="/accessionregisters/{id_document}/accessionregisterdetails")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response findAccessionRegisterDetail(@PathParam(value="id_document")
String documentId,
com.fasterxml.jackson.databind.JsonNode select)
documentId - the document id of accession register to getselect - the query to get document@POST @Path(value="/traceabilitychecks") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response checkOperationTraceability(com.fasterxml.jackson.databind.JsonNode query)
query - the DSLQuery used to find the traceability operation to validate@POST @Path(value="/audits") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response launchAudit(com.fasterxml.jackson.databind.JsonNode options)
options - @Path(value="/securityprofiles") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response importSecurityProfiles(com.fasterxml.jackson.databind.JsonNode document)
document - the security profile to import@Path(value="/securityprofiles") @GET @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response findSecurityProfiles(com.fasterxml.jackson.databind.JsonNode select)
select - the select query to find document@Path(value="/securityprofiles/{identifier}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response findSecurityProfileByIdentifier(@PathParam(value="identifier")
String identifier)
identifier - the identifier of the security profile to find@Path(value="/securityprofiles/{identifier}")
@PUT
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response updateSecurityProfile(@PathParam(value="identifier")
String identifier,
com.fasterxml.jackson.databind.JsonNode queryDsl)
throws AdminManagementClientServerException,
InvalidParseOperationException
identifier - the identifier of the security profile to updatequeryDsl - query to executeAdminManagementClientServerExceptionInvalidParseOperationException@GET
@Path(value="/operations")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response listOperationsDetails(@Context
javax.ws.rs.core.HttpHeaders headers,
ProcessQuery query)
headers - the http header of requestquery - the filter query@Path(value="operations/{id}")
@HEAD
@Produces(value="application/json")
public javax.ws.rs.core.Response getWorkFlowExecutionStatus(@PathParam(value="id")
String id)
id - operation identifier@Path(value="operations/{id}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getOperationProcessExecutionDetails(@PathParam(value="id")
String id)
id - operation identifier@Path(value="operations/{id}")
@PUT
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response updateWorkFlowStatus(@Context
javax.ws.rs.core.HttpHeaders headers,
@PathParam(value="id")
String id)
headers - contain X-Action and X-Context-IDid - operation identifier@Path(value="operations/{id}")
@DELETE
@Produces(value="application/json")
public javax.ws.rs.core.Response interruptWorkFlowExecution(@PathParam(value="id")
String id)
id - operation identifier@GET
@Path(value="/workflows")
@Produces(value="application/json")
public javax.ws.rs.core.Response getWorkflowDefinitions(@Context
javax.ws.rs.core.HttpHeaders headers)
headers - the http header of request@GET
@Path(value="/rulesreport/{opId}")
@Produces(value="application/octet-stream")
public javax.ws.rs.core.Response downloadRulesReportAsStream(@PathParam(value="opId")
String opId)
Return the report as stream asynchronously
The caller is responsible to close the Response after consuming the inputStream.
opId - the id of logbook operation@Path(value="/evidenceaudit/unit/{id}")
@POST
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response checkUnitEvidenceAudit(@PathParam(value="id")
String unitId)
unitId - unit Id@Path(value="/evidenceaudit/objects/{id}")
@POST
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response checkObjectGroupEvidenceAudit(@PathParam(value="id")
String objectGroupId)
objectGroupId - object group IdCopyright © 2018 Vitam. All rights reserved.