@Path(value="/access-internal/v1") public class AccessInternalResourceImpl extends ApplicationStatusResource implements AccessInternalResource
STATUS_URL, TENANTS_URL
Constructor and Description |
---|
AccessInternalResourceImpl(AccessInternalConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
exportDIP(DipExportRequest dipExportRequest)
get Archive Unit list by query based on identifier
|
javax.ws.rs.core.Response |
findDIPByID(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 InputStream
|
javax.ws.rs.core.Response |
getObjectByIdWithXMLFormat(com.fasterxml.jackson.databind.JsonNode dslQuery,
String objectId)
gets object group by Id with Json query
|
javax.ws.rs.core.Response |
getObjectByUnitIdWithXMLFormat(com.fasterxml.jackson.databind.JsonNode queryDsl,
String idUnit)
gets object group by Id with Json query
|
javax.ws.rs.core.Response |
getObjectGroup(String idObjectGroup,
com.fasterxml.jackson.databind.JsonNode query)
Retrieve an ObjectGroup by its id
|
javax.ws.rs.core.Response |
getObjects(com.fasterxml.jackson.databind.JsonNode queryDsl)
get Groups Objects list based on DSL query
|
javax.ws.rs.core.Response |
getObjectStreamAsync(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.Response |
getUnitById(com.fasterxml.jackson.databind.JsonNode queryDsl,
String idUnit)
get Archive Unit list by query based on identifier
|
javax.ws.rs.core.Response |
getUnitByIdWithXMLFormat(com.fasterxml.jackson.databind.JsonNode queryDsl,
String idUnit)
gets archive units by Id with Json query
|
javax.ws.rs.core.Response |
getUnits(com.fasterxml.jackson.databind.JsonNode queryDsl)
get Archive Unit list by query based on identifier
|
javax.ws.rs.core.Response |
massUpdateUnits(com.fasterxml.jackson.databind.JsonNode queryDsl)
Mass update of archive units with Json query
|
javax.ws.rs.core.Response |
massUpdateUnitsRules(MassUpdateUnitRuleRequest massUpdateUnitRuleRequest)
Mass update of archive units rules
|
javax.ws.rs.core.Response |
selectUnitsWithInheritedRules(com.fasterxml.jackson.databind.JsonNode queryDsl)
Select units with inherited rules
|
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 |
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 |
updateUnitById(com.fasterxml.jackson.databind.JsonNode queryDsl,
String idUnit,
String requestId)
update archive units by Id with Json query
|
getServerTenants, status
public AccessInternalResourceImpl(AccessInternalConfiguration configuration)
configuration
- to associate with AccessResourceImpl@GET @Path(value="/units") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getUnits(com.fasterxml.jackson.databind.JsonNode queryDsl)
getUnits
in interface AccessInternalResource
queryDsl
- as JsonNode@GET @Path(value="/unitsWithInheritedRules") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response selectUnitsWithInheritedRules(com.fasterxml.jackson.databind.JsonNode queryDsl)
selectUnitsWithInheritedRules
in interface AccessInternalResource
queryDsl
- as JsonNode@POST @Path(value="/dipexport") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response exportDIP(DipExportRequest dipExportRequest)
exportDIP
in interface AccessInternalResource
dipExportRequest
- as DipExportRequest@GET @Path(value="/dipexport/{id}/dip") @Consumes(value="application/octet-stream") public javax.ws.rs.core.Response findDIPByID(@PathParam(value="id") String id)
findDIPByID
in interface AccessInternalResource
id
- of operation (X-Request-Id)@POST @Path(value="/reclassification") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response startReclassificationWorkflow(com.fasterxml.jackson.databind.JsonNode reclassificationRequestJson)
startReclassificationWorkflow
in interface AccessInternalResource
reclassificationRequestJson
- Reclassification request.public javax.ws.rs.core.Response startReclassificationWorkflow(com.fasterxml.jackson.databind.JsonNode reclassificationRequestJson, ProcessAction processAction)
reclassificationRequestJson
- processAction
- @POST @Path(value="/elimination/analysis") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response startEliminationAnalysisWorkflow(EliminationRequestBody eliminationRequestBody)
startEliminationAnalysisWorkflow
in interface AccessInternalResource
eliminationRequestBody
- elimination DSL request@POST @Path(value="/elimination/action") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response startEliminationActionWorkflow(EliminationRequestBody eliminationRequestBody)
startEliminationActionWorkflow
in interface AccessInternalResource
eliminationRequestBody
- elimination DSL request@GET @Path(value="/units/{id_unit}") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getUnitById(com.fasterxml.jackson.databind.JsonNode queryDsl, @PathParam(value="id_unit") String idUnit)
getUnitById
in interface AccessInternalResource
queryDsl
- as JsonNodeidUnit
- identifier@GET @Path(value="/units/{id_unit}") @Consumes(value="application/json") @Produces(value="application/xml") public javax.ws.rs.core.Response getUnitByIdWithXMLFormat(com.fasterxml.jackson.databind.JsonNode queryDsl, @PathParam(value="id_unit") String idUnit)
AccessInternalResource
getUnitByIdWithXMLFormat
in interface AccessInternalResource
queryDsl
- DSL, null not allowedidUnit
- units identifier@PUT @Path(value="/units/{id_unit}") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response updateUnitById(com.fasterxml.jackson.databind.JsonNode queryDsl, @PathParam(value="id_unit") String idUnit, @HeaderParam(value="X-Request-Id") String requestId)
updateUnitById
in interface AccessInternalResource
requestId
- request identifierqueryDsl
- DSK, null not allowedidUnit
- units identifier@GET @Path(value="/objects/{id_object_group}") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getObjectGroup(@PathParam(value="id_object_group") String idObjectGroup, com.fasterxml.jackson.databind.JsonNode query)
AccessInternalResource
getObjectGroup
in interface AccessInternalResource
idObjectGroup
- the ObjectGroup idquery
- the json query@GET @Path(value="/objects/{id_object_group}") @Consumes(value="application/json") @Produces(value="application/xml") public javax.ws.rs.core.Response getObjectByIdWithXMLFormat(com.fasterxml.jackson.databind.JsonNode dslQuery, @PathParam(value="id_object_group") String objectId)
AccessInternalResource
getObjectByIdWithXMLFormat
in interface AccessInternalResource
dslQuery
- DSL, null not allowedobjectId
- units identifier@GET @Path(value="/units/{id_unit}/object") @Consumes(value="application/json") @Produces(value="application/xml") public javax.ws.rs.core.Response getObjectByUnitIdWithXMLFormat(com.fasterxml.jackson.databind.JsonNode queryDsl, @PathParam(value="id_unit") String idUnit)
AccessInternalResource
getObjectByUnitIdWithXMLFormat
in interface AccessInternalResource
queryDsl
- DSL, null not allowedidUnit
- units identifier@GET @Path(value="/objects/{id_object_group}/{id_unit}") @Consumes(value="application/json") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getObjectStreamAsync(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="id_object_group") String idObjectGroup, @PathParam(value="id_unit") String idUnit)
AccessInternalResource
getObjectStreamAsync
in interface AccessInternalResource
@GET @Path(value="/storageaccesslog") @Consumes(value="application/json") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getAccessLogStreamAsync(@Context javax.ws.rs.core.HttpHeaders headers, com.fasterxml.jackson.databind.JsonNode params)
AccessInternalResource
getAccessLogStreamAsync
in interface AccessInternalResource
headers
- request headersparams
- given params in order to filter accessLog files@POST @Path(value="/units") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response massUpdateUnits(com.fasterxml.jackson.databind.JsonNode queryDsl)
AccessInternalResource
massUpdateUnits
in interface AccessInternalResource
queryDsl
- DSL, null not allowed@POST @Path(value="/units/rules") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response massUpdateUnitsRules(MassUpdateUnitRuleRequest massUpdateUnitRuleRequest)
AccessInternalResource
massUpdateUnitsRules
in interface AccessInternalResource
massUpdateUnitRuleRequest
- wrapper for {DSL, RuleActions}, null not allowed@GET @Path(value="/objects") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getObjects(com.fasterxml.jackson.databind.JsonNode queryDsl)
getObjects
in interface AccessInternalResource
queryDsl
- as JsonNodeCopyright © 2018 Vitam. All rights reserved.