@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 |
deleteComputeInheritedRules(com.fasterxml.jackson.databind.JsonNode dslQuery) |
javax.ws.rs.core.Response |
exportByUsageFilter(ExportRequest exportRequest)
get Archive Unit list by query based on identifier
|
javax.ws.rs.core.Response |
exportDIP(com.fasterxml.jackson.databind.JsonNode dslRequest)
get Archive Unit list by query based on identifier
|
javax.ws.rs.core.Response |
findDIPByID(String id) |
javax.ws.rs.core.Response |
findTransferSIPByID(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 |
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 |
transferReply(InputStream transferReply) |
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, statuspublic 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 AccessInternalResourcequeryDsl - 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 AccessInternalResourcequeryDsl - as JsonNode@POST @Path(value="/dipexport") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response exportDIP(com.fasterxml.jackson.databind.JsonNode dslRequest)
exportDIP in interface AccessInternalResourcedslRequest - as DipExportRequest@POST @Path(value="/export/usagefilter") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response exportByUsageFilter(ExportRequest exportRequest)
exportByUsageFilter in interface AccessInternalResourceexportRequest - as DipExportRequest@POST @Path(value="/transfers/reply") @Consumes(value="application/xml") @Produces(value="application/json") public javax.ws.rs.core.Response transferReply(InputStream transferReply)
transferReply in interface AccessInternalResource@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 AccessInternalResourceid - of operation (X-Request-Id)@GET
@Path(value="/transferexport/{id}/sip")
@Consumes(value="application/octet-stream")
public javax.ws.rs.core.Response findTransferSIPByID(@PathParam(value="id")
String id)
findTransferSIPByID in interface AccessInternalResourceid - 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 AccessInternalResourcereclassificationRequestJson - 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 AccessInternalResourceeliminationRequestBody - 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 AccessInternalResourceeliminationRequestBody - 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 AccessInternalResourcequeryDsl - 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)
AccessInternalResourcegetUnitByIdWithXMLFormat in interface AccessInternalResourcequeryDsl - 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 AccessInternalResourcerequestId - 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)
AccessInternalResourcegetObjectGroup in interface AccessInternalResourceidObjectGroup - 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)
AccessInternalResourcegetObjectByIdWithXMLFormat in interface AccessInternalResourcedslQuery - 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)
AccessInternalResourcegetObjectByUnitIdWithXMLFormat in interface AccessInternalResourcequeryDsl - 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)
AccessInternalResourcegetObjectStreamAsync 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)
AccessInternalResourcegetAccessLogStreamAsync in interface AccessInternalResourceheaders - 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)
AccessInternalResourcemassUpdateUnits in interface AccessInternalResourcequeryDsl - 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)
AccessInternalResourcemassUpdateUnitsRules in interface AccessInternalResourcemassUpdateUnitRuleRequest - wrapper for {DSL, RuleActions}, null not allowed@Path(value="/units/computedInheritedRules") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response startComputeInheritedRules(com.fasterxml.jackson.databind.JsonNode dslQuery)
@Path(value="/units/computedInheritedRules") @DELETE @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response deleteComputeInheritedRules(com.fasterxml.jackson.databind.JsonNode dslQuery)
@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 AccessInternalResourcequeryDsl - as JsonNode@Path(value="/preservation") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response startPreservation(PreservationRequest preservationRequest)
Copyright © 2019 Vitam. All rights reserved.