@Path(value="/access-external/v1") public class AccessExternalResource extends ApplicationStatusResource
STATUS_URL, TENANTS_URL
Constructor and Description |
---|
AccessExternalResource(SecureEndpointRegistry secureEndpointRegistry)
Constructor
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
exportDIP(com.fasterxml.jackson.databind.JsonNode queryJson)
get units list by query
|
javax.ws.rs.core.Response |
findDIPByID(String id)
get units list by query
|
javax.ws.rs.core.Response |
getDataObjectByUnitId(javax.ws.rs.core.HttpHeaders headers,
String unitId)
The caller is responsible to close the Response after consuming the inputStream.
|
javax.ws.rs.core.Response |
getObjectGroupMetadataByUnitId(javax.ws.rs.core.HttpHeaders headers,
String unitId,
com.fasterxml.jackson.databind.JsonNode queryJson)
Retrieve Object group list by query based on identifier of the unit
|
javax.ws.rs.core.Response |
getUnitById(com.fasterxml.jackson.databind.JsonNode queryJson,
String idUnit)
get units list by query based on identifier
|
javax.ws.rs.core.Response |
getUnits(com.fasterxml.jackson.databind.JsonNode queryJson)
get a DIP by dsl query
|
javax.ws.rs.core.Response |
listResourceEndpoints()
List secured resource end points
|
javax.ws.rs.core.Response |
updateUnitById(com.fasterxml.jackson.databind.JsonNode queryJson,
String idUnit)
update archive units by Id with Json query
|
getServerTenants, status
public AccessExternalResource(SecureEndpointRegistry secureEndpointRegistry)
secureEndpointRegistry
- endpoint list registry@Path(value="/") @OPTIONS @Produces(value="application/json") public javax.ws.rs.core.Response listResourceEndpoints()
@GET @Path(value="/units") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getUnits(com.fasterxml.jackson.databind.JsonNode queryJson)
queryJson
- the query to get units@POST @Path(value="/dipexport") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response exportDIP(com.fasterxml.jackson.databind.JsonNode queryJson)
queryJson
- the query to get units@GET @Path(value="/dipexport/{id}/dip") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response findDIPByID(@PathParam(value="id") String id)
id
- operationId correponding to the current dip@GET @Path(value="/units/{idu}") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getUnitById(com.fasterxml.jackson.databind.JsonNode queryJson, @PathParam(value="idu") String idUnit)
queryJson
- query as StringidUnit
- the id of archive unit to get@PUT @Path(value="/units/{idu}") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response updateUnitById(com.fasterxml.jackson.databind.JsonNode queryJson, @PathParam(value="idu") String idUnit)
queryJson
- the update query (null not allowed)idUnit
- units identifier@GET @Path(value="/units/{idu}/objects") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response getObjectGroupMetadataByUnitId(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="idu") String unitId, com.fasterxml.jackson.databind.JsonNode queryJson)
headers
- the http header defined parameters of requestunitId
- the id of archive unitqueryJson
- the query to get object@GET @Path(value="/units/{idu}/objects") @Consumes(value="application/json") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response getDataObjectByUnitId(@Context javax.ws.rs.core.HttpHeaders headers, @PathParam(value="idu") String unitId)
headers
- the http header defined parameters of requestunitId
- the id of archive unitCopyright © 2018 Vitam. All rights reserved.