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 Constructor Description AccessInternalResourceImpl(AccessInternalConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
bulkAtomicUpdateUnits(com.fasterxml.jackson.databind.JsonNode query)
Bulk Atomic update of archive units with Json request containing multiple atomic update queriesjavax.ws.rs.core.Response
checkAccessRequestStatuses(javax.ws.rs.core.HttpHeaders headers, java.util.List<AccessRequestReference> accessRequestReferences)
javax.ws.rs.core.Response
createObjectAccessRequestIfRequired(javax.ws.rs.core.HttpHeaders headers, java.lang.String idObjectGroup)
javax.ws.rs.core.Response
deleteComputeInheritedRules(com.fasterxml.jackson.databind.JsonNode dslQuery)
javax.ws.rs.core.Response
deleteGotVersions(DeleteGotVersionsRequest deleteGotVersionsRequest)
javax.ws.rs.core.Response
exportByUsageFilter(ExportRequest exportRequest)
get Archive Unit list by query based on identifierjavax.ws.rs.core.Response
exportDIP(com.fasterxml.jackson.databind.JsonNode dslRequest)
get Archive Unit list by query based on identifierjavax.ws.rs.core.Response
findDIPByID(java.lang.String id)
javax.ws.rs.core.Response
findTransferSIPByID(java.lang.String id)
javax.ws.rs.core.Response
getAccessLogStreamAsync(javax.ws.rs.core.HttpHeaders headers, com.fasterxml.jackson.databind.JsonNode params)
gets accesslog file by id as an InputStreamjavax.ws.rs.core.Response
getObjectGroup(java.lang.String idObjectGroup, com.fasterxml.jackson.databind.JsonNode query)
Retrieve an ObjectGroup by its idjavax.ws.rs.core.Response
getObjects(com.fasterxml.jackson.databind.JsonNode queryDsl)
get Groups Objects list based on DSL queryjavax.ws.rs.core.Response
getObjectStreamAsync(javax.ws.rs.core.HttpHeaders headers, java.lang.String idObjectGroup, java.lang.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.Response
getUnitById(com.fasterxml.jackson.databind.JsonNode queryDsl, java.lang.String idUnit)
get Archive Unit list by query based on identifierjavax.ws.rs.core.Response
getUnits(com.fasterxml.jackson.databind.JsonNode queryDsl)
get Archive Unit list by query based on identifierjavax.ws.rs.core.Response
massUpdateUnits(com.fasterxml.jackson.databind.JsonNode queryDsl)
Mass update of archive units with Json queryjavax.ws.rs.core.Response
massUpdateUnitsRules(MassUpdateUnitRuleRequest massUpdateUnitRuleRequest)
Mass update of archive units rulesjavax.ws.rs.core.Response
removeAccessRequest(javax.ws.rs.core.HttpHeaders headers, AccessRequestReference accessRequestReference)
javax.ws.rs.core.Response
revertUpdateUnits(RevertUpdateOptions revertUpdateOptions)
gets objects group with Json query Revert an update of archive unitsjavax.ws.rs.core.Response
selectUnitsWithInheritedRules(com.fasterxml.jackson.databind.JsonNode queryDsl)
Select units with inherited rulesjavax.ws.rs.core.Response
startComputeInheritedRules(com.fasterxml.jackson.databind.JsonNode dslQuery)
javax.ws.rs.core.Response
startEliminationActionWorkflow(EliminationRequestBody eliminationRequestBody)
Starts a elimination action workflow.javax.ws.rs.core.Response
startEliminationAnalysisWorkflow(EliminationRequestBody eliminationRequestBody)
Starts a elimination analysis workflow.javax.ws.rs.core.Response
startPreservation(PreservationRequest preservationRequest)
javax.ws.rs.core.Response
startReclassificationWorkflow(com.fasterxml.jackson.databind.JsonNode reclassificationRequestJson)
Starts a reclassification workflow.javax.ws.rs.core.Response
startReclassificationWorkflow(com.fasterxml.jackson.databind.JsonNode reclassificationRequestJson, ProcessAction processAction)
javax.ws.rs.core.Response
streamObjects(com.fasterxml.jackson.databind.JsonNode queryDsl)
get objects list by query based on identifierjavax.ws.rs.core.Response
streamUnits(com.fasterxml.jackson.databind.JsonNode queryDsl)
get Archive Unit list by query based on identifierjavax.ws.rs.core.Response
transferReply(java.io.InputStream transferReply)
javax.ws.rs.core.Response
updateUnitById(com.fasterxml.jackson.databind.JsonNode queryDsl, java.lang.String idUnit, java.lang.String requestId)
update archive units by Id with Json query-
Methods inherited from class fr.gouv.vitam.common.server.application.resources.ApplicationStatusResource
getServerTenants, status
-
-
-
-
Constructor Detail
-
AccessInternalResourceImpl
public AccessInternalResourceImpl(AccessInternalConfiguration configuration)
- Parameters:
configuration
- to associate with AccessResourceImpl
-
-
Method Detail
-
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:
getUnits
in interfaceAccessInternalResource
- Parameters:
queryDsl
- as JsonNode- Returns:
- an archive unit result list
-
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:
streamUnits
in 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:
streamObjects
in 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:
selectUnitsWithInheritedRules
in 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:
exportDIP
in 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:
exportByUsageFilter
in 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(java.io.InputStream transferReply)
- Specified by:
transferReply
in interfaceAccessInternalResource
-
findDIPByID
@GET @Path("/dipexport/{id}/dip") @Consumes("application/octet-stream") public javax.ws.rs.core.Response findDIPByID(@PathParam("id") java.lang.String id)
- Specified by:
findDIPByID
in 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") java.lang.String id)
- Specified by:
findTransferSIPByID
in 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:
startReclassificationWorkflow
in 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:
startEliminationAnalysisWorkflow
in 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:
startEliminationActionWorkflow
in 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") java.lang.String idUnit)
get Archive Unit list by query based on identifier- Specified by:
getUnitById
in 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") java.lang.String idUnit, @HeaderParam("X-Request-Id") java.lang.String requestId)
update archive units by Id with Json query- Specified by:
updateUnitById
in 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") java.lang.String idObjectGroup, com.fasterxml.jackson.databind.JsonNode query)
Description copied from interface:AccessInternalResource
Retrieve an ObjectGroup by its id- Specified by:
getObjectGroup
in 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") java.lang.String idObjectGroup, @PathParam("id_unit") java.lang.String idUnit)
Description copied from interface:AccessInternalResource
Retrieve an Object associated to the given ObjectGroup id based on given (via headers) Qualifier and Version (Async version)- Specified by:
getObjectStreamAsync
in 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") java.lang.String idObjectGroup)
- Specified by:
createObjectAccessRequestIfRequired
in 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, java.util.List<AccessRequestReference> accessRequestReferences)
- Specified by:
checkAccessRequestStatuses
in 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:
removeAccessRequest
in 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:AccessInternalResource
gets accesslog file by id as an InputStream- Specified by:
getAccessLogStreamAsync
in 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:AccessInternalResource
Mass update of archive units with Json query- Specified by:
massUpdateUnits
in 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:AccessInternalResource
Mass update of archive units rules- Specified by:
massUpdateUnitsRules
in 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:AccessInternalResource
Bulk Atomic update of archive units with Json request containing multiple atomic update queries- Specified by:
bulkAtomicUpdateUnits
in 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:AccessInternalResource
gets objects group with Json query Revert an update of archive units- Specified by:
revertUpdateUnits
in 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:
getObjects
in 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)
-
-