@Path(value="/access-internal/v1") public class AccessInternalResourceImpl extends ApplicationStatusResource implements AccessInternalResource
Modifier and Type | Field and Description |
---|---|
static String |
EXPORT_DIP |
static String |
UNITS |
STATUS_URL, TENANTS_URL
Constructor and Description |
---|
AccessInternalResourceImpl(AccessInternalConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
exportDIP(com.fasterxml.jackson.databind.JsonNode queryDsl)
get Archive Unit list by query based on identifier
|
javax.ws.rs.core.Response |
findDIPByID(String id) |
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 |
getObjectStreamAsync(javax.ws.rs.core.HttpHeaders headers,
String idObjectGroup)
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 |
updateUnitById(com.fasterxml.jackson.databind.JsonNode queryDsl,
String idUnit,
String requestId)
update archive units by Id with Json query
|
getServerTenants, status
public static final String EXPORT_DIP
public static final String UNITS
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) throws MetaDataDocumentSizeException, MetaDataExecutionException, MetaDataClientServerException
getUnits
in interface AccessInternalResource
queryDsl
- as JsonNodeMetaDataDocumentSizeException
MetaDataExecutionException
MetaDataClientServerException
@POST @Path(value="/dipexport") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response exportDIP(com.fasterxml.jackson.databind.JsonNode queryDsl)
exportDIP
in interface AccessInternalResource
queryDsl
- as JsonNode@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)@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}") @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)
AccessInternalResource
getObjectStreamAsync
in interface AccessInternalResource
Copyright © 2018 Vitam. All rights reserved.