Class AccessInternalResourceImpl
java.lang.Object
fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
fr.gouv.vitam.access.internal.rest.AccessInternalResourceImpl
- All Implemented Interfaces:
AccessInternalResource
@Path("/access-internal/v1")
public class AccessInternalResourceImpl
extends ApplicationStatusResource
implements AccessInternalResource
-
Field Summary
Fields inherited from class fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
STATUS_URL, TENANTS_URL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsebulkAtomicUpdateUnits(com.fasterxml.jackson.databind.JsonNode query) Bulk Atomic update of archive units with Json request containing multiple atomic update queriesjavax.ws.rs.core.ResponsecheckAccessRequestStatuses(javax.ws.rs.core.HttpHeaders headers, List<AccessRequestReference> accessRequestReferences) javax.ws.rs.core.ResponsecreateObjectAccessRequestIfRequired(javax.ws.rs.core.HttpHeaders headers, String idObjectGroup) javax.ws.rs.core.ResponsedeleteComputeInheritedRules(com.fasterxml.jackson.databind.JsonNode dslQuery) javax.ws.rs.core.ResponsedeleteGotVersions(DeleteGotVersionsRequest deleteGotVersionsRequest) javax.ws.rs.core.ResponsedownloadObjectByPersistentIdentifier(String persistentIdentifier) javax.ws.rs.core.ResponsedownloadObjectsByUnitPersistentIdentifier(String unitPersistentIdentifier, String qualifier, Integer version) javax.ws.rs.core.ResponseexportByUsageFilter(ExportRequest exportRequest) get Archive Unit list by query based on identifierjavax.ws.rs.core.ResponseexportDIP(com.fasterxml.jackson.databind.JsonNode dslRequest) get Archive Unit list by query based on identifierjavax.ws.rs.core.ResponsefindDIPByID(String id) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetAccessLogStreamAsync(javax.ws.rs.core.HttpHeaders headers, com.fasterxml.jackson.databind.JsonNode params) gets accesslog file by id as an InputStreamjavax.ws.rs.core.ResponsegetObjectGroup(String idObjectGroup, com.fasterxml.jackson.databind.JsonNode query) Retrieve an ObjectGroup by its idjavax.ws.rs.core.ResponsegetObjects(com.fasterxml.jackson.databind.JsonNode queryDsl) get Groups Objects list based on DSL queryjavax.ws.rs.core.ResponsegetObjectsByObjectPersistentIdentifier(String persistentIdentifier, com.fasterxml.jackson.databind.JsonNode selectQuery) get Archive Unit list by query based on identifierjavax.ws.rs.core.ResponsegetObjectStreamAsync(javax.ws.rs.core.HttpHeaders headers, String idObjectGroup, String idUnit) Retrieve an Object associated to the given ObjectGroup id based on given (via headers) Qualifier and Version (Async version)javax.ws.rs.core.ResponsegetUnitById(com.fasterxml.jackson.databind.JsonNode queryDsl, String idUnit) get Archive Unit list by query based on identifierjavax.ws.rs.core.ResponsegetUnits(com.fasterxml.jackson.databind.JsonNode queryDsl) get Archive Unit list by query based on identifierjavax.ws.rs.core.ResponsegetUnitsByUnitPersistentIdentifier(String persistentIdentifier, com.fasterxml.jackson.databind.JsonNode selectQuery) get Archive Unit list by query based on identifierjavax.ws.rs.core.ResponsemassUpdateUnits(com.fasterxml.jackson.databind.JsonNode queryDsl) Mass update of archive units with Json queryjavax.ws.rs.core.ResponsemassUpdateUnitsRules(MassUpdateUnitRuleRequest massUpdateUnitRuleRequest) Mass update of archive units rulesjavax.ws.rs.core.ResponseremoveAccessRequest(javax.ws.rs.core.HttpHeaders headers, AccessRequestReference accessRequestReference) javax.ws.rs.core.ResponserevertUpdateUnits(RevertUpdateOptions revertUpdateOptions) gets objects group with Json query Revert an update of archive unitsjavax.ws.rs.core.ResponseselectUnitsWithInheritedRules(com.fasterxml.jackson.databind.JsonNode queryDsl) Select units with inherited rulesjavax.ws.rs.core.ResponsestartComputeInheritedRules(com.fasterxml.jackson.databind.JsonNode dslQuery) javax.ws.rs.core.ResponsestartEliminationActionWorkflow(EliminationRequestBody eliminationRequestBody) Starts a elimination action workflow.javax.ws.rs.core.ResponsestartEliminationAnalysisWorkflow(EliminationRequestBody eliminationRequestBody) Starts a elimination analysis workflow.javax.ws.rs.core.ResponsestartPreservation(PreservationRequest preservationRequest) javax.ws.rs.core.ResponsestartReclassificationWorkflow(com.fasterxml.jackson.databind.JsonNode reclassificationRequestJson) Starts a reclassification workflow.javax.ws.rs.core.ResponsestartReclassificationWorkflow(com.fasterxml.jackson.databind.JsonNode reclassificationRequestJson, ProcessAction processAction) javax.ws.rs.core.ResponsestreamObjects(com.fasterxml.jackson.databind.JsonNode queryDsl) get objects list by query based on identifierjavax.ws.rs.core.ResponsestreamUnits(com.fasterxml.jackson.databind.JsonNode queryDsl) get Archive Unit list by query based on identifierjavax.ws.rs.core.ResponsetransferReply(InputStream transferReply) javax.ws.rs.core.ResponseupdateUnitById(com.fasterxml.jackson.databind.JsonNode queryDsl, String idUnit, String requestId) update archive units by Id with Json queryMethods inherited from class fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
getServerTenants, status
-
Constructor Details
-
AccessInternalResourceImpl
- Parameters:
configuration- to associate with AccessResourceImpl
-
-
Method Details
-
getUnits
@GET @Path("/units") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getUnits(com.fasterxml.jackson.databind.JsonNode queryDsl) get Archive Unit list by query based on identifier- Specified by:
getUnitsin interfaceAccessInternalResource- Parameters:
queryDsl- as JsonNode- Returns:
- an archive unit result list
-
getUnitsByUnitPersistentIdentifier
@GET @Path("/units/unitpid/{persistentIdentifier:.+}") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getUnitsByUnitPersistentIdentifier(@PathParam("persistentIdentifier") String persistentIdentifier, com.fasterxml.jackson.databind.JsonNode selectQuery) get Archive Unit list by query based on identifier- Specified by:
getUnitsByUnitPersistentIdentifierin interfaceAccessInternalResource- Parameters:
persistentIdentifier- persistent IdentifierselectQuery- as JsonNode- Returns:
- an archive unit result list
-
downloadObjectsByUnitPersistentIdentifier
@GET @Path("/objects/unitpid/{persistentIdentifier:.+}") @Produces({"application/octet-stream","application/json"}) public javax.ws.rs.core.Response downloadObjectsByUnitPersistentIdentifier(@PathParam("persistentIdentifier") String unitPersistentIdentifier, @DefaultValue("BinaryMaster") @QueryParam("qualifier") String qualifier, @QueryParam("version") Integer version) - Specified by:
downloadObjectsByUnitPersistentIdentifierin interfaceAccessInternalResource
-
getObjectsByObjectPersistentIdentifier
@GET @Path("/objects/objectpid/{persistentIdentifier:.+}") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getObjectsByObjectPersistentIdentifier(@PathParam("persistentIdentifier") String persistentIdentifier, com.fasterxml.jackson.databind.JsonNode selectQuery) get Archive Unit list by query based on identifier- Specified by:
getObjectsByObjectPersistentIdentifierin interfaceAccessInternalResource- Parameters:
persistentIdentifier- persistent IdentifierselectQuery- as JsonNode- Returns:
- an archive unit result list
-
downloadObjectByPersistentIdentifier
@GET @Path("/objects/objectpid/{persistentIdentifier:.+}") @Produces({"application/octet-stream","application/json"}) public javax.ws.rs.core.Response downloadObjectByPersistentIdentifier(@PathParam("persistentIdentifier") String persistentIdentifier) - Specified by:
downloadObjectByPersistentIdentifierin interfaceAccessInternalResource
-
streamUnits
@GET @Path("/units/stream") @Consumes("application/json") @Produces("application/octet-stream") public javax.ws.rs.core.Response streamUnits(com.fasterxml.jackson.databind.JsonNode queryDsl) get Archive Unit list by query based on identifier- Specified by:
streamUnitsin interfaceAccessInternalResource- Parameters:
queryDsl- as JsonNode- Returns:
- an archive unit result list
-
streamObjects
@GET @Path("/objects/stream") @Consumes("application/json") @Produces("application/octet-stream") public javax.ws.rs.core.Response streamObjects(com.fasterxml.jackson.databind.JsonNode queryDsl) get objects list by query based on identifier- Specified by:
streamObjectsin interfaceAccessInternalResource- Parameters:
queryDsl- as JsonNode- Returns:
- an objects result list
-
selectUnitsWithInheritedRules
@GET @Path("/unitsWithInheritedRules") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response selectUnitsWithInheritedRules(com.fasterxml.jackson.databind.JsonNode queryDsl) Select units with inherited rules- Specified by:
selectUnitsWithInheritedRulesin interfaceAccessInternalResource- Parameters:
queryDsl- as JsonNode- Returns:
- an archive unit result list with inherited rules
-
exportDIP
@POST @Path("/dipexport") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response exportDIP(com.fasterxml.jackson.databind.JsonNode dslRequest) get Archive Unit list by query based on identifier- Specified by:
exportDIPin interfaceAccessInternalResource- Parameters:
dslRequest- as DipExportRequest- Returns:
- an archive unit result list
-
exportByUsageFilter
@POST @Path("/export/usagefilter") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response exportByUsageFilter(ExportRequest exportRequest) get Archive Unit list by query based on identifier- Specified by:
exportByUsageFilterin interfaceAccessInternalResource- Parameters:
exportRequest- as DipExportRequest / TransferRequest- Returns:
- an archive unit result list
-
transferReply
@POST @Path("/transfers/reply") @Consumes("application/xml") @Produces("application/json") public javax.ws.rs.core.Response transferReply(InputStream transferReply) - Specified by:
transferReplyin interfaceAccessInternalResource
-
findDIPByID
@GET @Path("/dipexport/{id}/dip") @Consumes("application/octet-stream") public javax.ws.rs.core.Response findDIPByID(@PathParam("id") String id) - Specified by:
findDIPByIDin interfaceAccessInternalResource- Parameters:
id- of operation (X-Request-Id)- Returns:
-
findTransferSIPByID
@GET @Path("/transferexport/{id}/sip") @Consumes("application/octet-stream") public javax.ws.rs.core.Response findTransferSIPByID(@PathParam("id") String id) - Specified by:
findTransferSIPByIDin interfaceAccessInternalResource- Parameters:
id- of operation (X-Request-Id)- Returns:
-
startReclassificationWorkflow
@POST @Path("/reclassification") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response startReclassificationWorkflow(com.fasterxml.jackson.databind.JsonNode reclassificationRequestJson) Starts a reclassification workflow.- Specified by:
startReclassificationWorkflowin interfaceAccessInternalResource- Parameters:
reclassificationRequestJson- Reclassification request.- Returns:
- response
-
startReclassificationWorkflow
public javax.ws.rs.core.Response startReclassificationWorkflow(com.fasterxml.jackson.databind.JsonNode reclassificationRequestJson, ProcessAction processAction) - Parameters:
reclassificationRequestJson-processAction-- Returns:
-
startEliminationAnalysisWorkflow
@POST @Path("/elimination/analysis") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response startEliminationAnalysisWorkflow(EliminationRequestBody eliminationRequestBody) Starts a elimination analysis workflow.- Specified by:
startEliminationAnalysisWorkflowin interfaceAccessInternalResource- Parameters:
eliminationRequestBody- elimination DSL request- Returns:
- response
-
startEliminationActionWorkflow
@POST @Path("/elimination/action") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response startEliminationActionWorkflow(EliminationRequestBody eliminationRequestBody) Starts a elimination action workflow.- Specified by:
startEliminationActionWorkflowin interfaceAccessInternalResource- Parameters:
eliminationRequestBody- elimination DSL request- Returns:
- response
-
getUnitById
@GET @Path("/units/{id_unit}") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getUnitById(com.fasterxml.jackson.databind.JsonNode queryDsl, @PathParam("id_unit") String idUnit) get Archive Unit list by query based on identifier- Specified by:
getUnitByIdin interfaceAccessInternalResource- Parameters:
queryDsl- as JsonNodeidUnit- identifier- Returns:
- an archive unit result list
-
updateUnitById
@PUT @Path("/units/{id_unit}") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response updateUnitById(com.fasterxml.jackson.databind.JsonNode queryDsl, @PathParam("id_unit") String idUnit, @HeaderParam("X-Request-Id") String requestId) update archive units by Id with Json query- Specified by:
updateUnitByIdin interfaceAccessInternalResource- Parameters:
requestId- request identifierqueryDsl- DSK, null not allowedidUnit- units identifier- Returns:
- a archive unit result list
-
getObjectGroup
@GET @Path("/objects/{id_object_group}") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getObjectGroup(@PathParam("id_object_group") String idObjectGroup, com.fasterxml.jackson.databind.JsonNode query) Description copied from interface:AccessInternalResourceRetrieve an ObjectGroup by its id- Specified by:
getObjectGroupin interfaceAccessInternalResource- Parameters:
idObjectGroup- the ObjectGroup idquery- the json query- Returns:
- an http response containing the objectGroup as json or a json serialized error
-
getObjectStreamAsync
@GET @Path("/objects/{id_object_group}/{id_unit}") @Consumes("application/json") @Produces("application/octet-stream") public javax.ws.rs.core.Response getObjectStreamAsync(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("id_object_group") String idObjectGroup, @PathParam("id_unit") String idUnit) Description copied from interface:AccessInternalResourceRetrieve an Object associated to the given ObjectGroup id based on given (via headers) Qualifier and Version (Async version)- Specified by:
getObjectStreamAsyncin interfaceAccessInternalResource- Returns:
- response
-
createObjectAccessRequestIfRequired
@POST @Path("/objects/{id_object_group}/accessRequest") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response createObjectAccessRequestIfRequired(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam("id_object_group") String idObjectGroup) - Specified by:
createObjectAccessRequestIfRequiredin interfaceAccessInternalResource
-
checkAccessRequestStatuses
@GET @Path("/accessRequests/") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response checkAccessRequestStatuses(@Context javax.ws.rs.core.HttpHeaders headers, List<AccessRequestReference> accessRequestReferences) - Specified by:
checkAccessRequestStatusesin interfaceAccessInternalResource
-
removeAccessRequest
@DELETE @Path("/accessRequests/") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response removeAccessRequest(@Context javax.ws.rs.core.HttpHeaders headers, AccessRequestReference accessRequestReference) - Specified by:
removeAccessRequestin interfaceAccessInternalResource
-
getAccessLogStreamAsync
@GET @Path("/storageaccesslog") @Consumes("application/json") @Produces("application/octet-stream") public javax.ws.rs.core.Response getAccessLogStreamAsync(@Context javax.ws.rs.core.HttpHeaders headers, com.fasterxml.jackson.databind.JsonNode params) Description copied from interface:AccessInternalResourcegets accesslog file by id as an InputStream- Specified by:
getAccessLogStreamAsyncin interfaceAccessInternalResource- Parameters:
headers- request headersparams- given params in order to filter accessLog files- Returns:
-
massUpdateUnits
@POST @Path("/units") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response massUpdateUnits(com.fasterxml.jackson.databind.JsonNode queryDsl) Description copied from interface:AccessInternalResourceMass update of archive units with Json query- Specified by:
massUpdateUnitsin interfaceAccessInternalResource- Parameters:
queryDsl- DSL, null not allowed- Returns:
- the response
-
massUpdateUnitsRules
@POST @Path("/units/rules") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response massUpdateUnitsRules(MassUpdateUnitRuleRequest massUpdateUnitRuleRequest) Description copied from interface:AccessInternalResourceMass update of archive units rules- Specified by:
massUpdateUnitsRulesin interfaceAccessInternalResource- Parameters:
massUpdateUnitRuleRequest- wrapper for {DSL, RuleActions}, null not allowed- Returns:
- the response
-
bulkAtomicUpdateUnits
@POST @Path("/units/atomicbulk") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response bulkAtomicUpdateUnits(com.fasterxml.jackson.databind.JsonNode query) Description copied from interface:AccessInternalResourceBulk Atomic update of archive units with Json request containing multiple atomic update queries- Specified by:
bulkAtomicUpdateUnitsin interfaceAccessInternalResource- Returns:
- the response
-
revertUpdateUnits
@POST @Path("/revert/units") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response revertUpdateUnits(RevertUpdateOptions revertUpdateOptions) Description copied from interface:AccessInternalResourcegets objects group with Json query Revert an update of archive units- Specified by:
revertUpdateUnitsin interfaceAccessInternalResource- Parameters:
revertUpdateOptions- wrapper for {DSL, operationId}, null not allowed- Returns:
- the response
-
startComputeInheritedRules
@Path("/units/computedInheritedRules") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response startComputeInheritedRules(com.fasterxml.jackson.databind.JsonNode dslQuery) -
deleteComputeInheritedRules
@Path("/units/computedInheritedRules") @DELETE @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response deleteComputeInheritedRules(com.fasterxml.jackson.databind.JsonNode dslQuery) -
getObjects
@GET @Path("/objects") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getObjects(com.fasterxml.jackson.databind.JsonNode queryDsl) get Groups Objects list based on DSL query- Specified by:
getObjectsin interfaceAccessInternalResource- Parameters:
queryDsl- as JsonNode- Returns:
- a group objects result list
-
startPreservation
@Path("/preservation") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response startPreservation(PreservationRequest preservationRequest) -
deleteGotVersions
@Path("/deleteGotVersions") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response deleteGotVersions(DeleteGotVersionsRequest deleteGotVersionsRequest)
-