public interface AccessInternalClient extends MockOrRestClient
| Modifier and Type | Method and Description |
|---|---|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
checkTraceabilityOperation(com.fasterxml.jackson.databind.JsonNode query)
Checks operation traceability
|
javax.ws.rs.core.Response |
downloadTraceabilityFile(String operationId) |
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
exportDIP(com.fasterxml.jackson.databind.JsonNode queryJson)
launch a DIP operation by a DSL query
|
javax.ws.rs.core.Response |
findDIPByID(String id)
get a zip file containing a DIP by an operation id
|
javax.ws.rs.core.Response |
getObject(String objectGroupId,
String usage,
int version)
Retrieve an Object data as an input stream
|
javax.ws.rs.core.Response |
getObjectByIdWithXMLFormat(com.fasterxml.jackson.databind.JsonNode queryDsl,
String objectId)
Retrieve object group by id with XML format (DIP)
|
javax.ws.rs.core.Response |
getObjectByUnitIdWithXMLFormat(com.fasterxml.jackson.databind.JsonNode queryDsl,
String unitId)
Retrieve object group by unit id with XML format (DIP)
|
javax.ws.rs.core.Response |
getUnitByIdWithXMLFormat(com.fasterxml.jackson.databind.JsonNode queryDsl,
String idUnit) |
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
selectObjectbyId(com.fasterxml.jackson.databind.JsonNode selectObjectQuery,
String objectId)
Retrieve an ObjectGroup as Json data based on the provided ObjectGroup id
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
selectObjectGroupLifeCycleById(String idObject,
com.fasterxml.jackson.databind.JsonNode queryDsl)
selectObjectGroupLifeCycleById
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
selectOperation(com.fasterxml.jackson.databind.JsonNode select)
selectOperation
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
selectOperationById(String processId,
com.fasterxml.jackson.databind.JsonNode queryDsl)
selectOperationbyId
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
selectUnitbyId(com.fasterxml.jackson.databind.JsonNode sqlQuery,
String id)
select Unit By Id
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
selectUnitLifeCycle(com.fasterxml.jackson.databind.JsonNode queryDsl)
selectUnitLifeCycleById
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
selectUnitLifeCycleById(String idUnit,
com.fasterxml.jackson.databind.JsonNode queryDsl)
selectUnitLifeCycleById
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
selectUnits(com.fasterxml.jackson.databind.JsonNode selectQuery)
Select Units
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
updateUnitbyId(com.fasterxml.jackson.databind.JsonNode updateQuery,
String unitId)
update Unit By Id
|
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrlRequestResponse<com.fasterxml.jackson.databind.JsonNode> selectUnits(com.fasterxml.jackson.databind.JsonNode selectQuery) throws InvalidParseOperationException, AccessInternalClientServerException, AccessInternalClientNotFoundException, AccessUnauthorizedException, BadRequestException, VitamDBException
selectQuery - the query used to select unitsInvalidParseOperationException - if the query is not well formattedAccessInternalClientServerException - if the server encountered an exceptionAccessInternalClientNotFoundException - if the requested unit does not existAccessUnauthorizedExceptionBadRequestException - if empty query is foundVitamDBExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> selectUnitbyId(com.fasterxml.jackson.databind.JsonNode sqlQuery, String id) throws InvalidParseOperationException, AccessInternalClientServerException, AccessInternalClientNotFoundException, AccessUnauthorizedException
sqlQuery - the query to be executedid - the id of the unitInvalidParseOperationException - if the query is not well formattedAccessInternalClientServerException - if the server encountered an exceptionAccessInternalClientNotFoundException - if the requested unit does not existAccessUnauthorizedExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> updateUnitbyId(com.fasterxml.jackson.databind.JsonNode updateQuery, String unitId) throws InvalidParseOperationException, AccessInternalClientServerException, AccessInternalClientNotFoundException, NoWritingPermissionException, AccessUnauthorizedException
updateQuery - the query to be executed as an updateunitId - the id of the unitInvalidParseOperationException - if the query is not well formattedAccessInternalClientServerException - if the server encountered an exceptionAccessInternalClientNotFoundException - if the requested unit does not existAccessUnauthorizedExceptionAccessInternalRuleExecutionExceptionNoWritingPermissionExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> selectObjectbyId(com.fasterxml.jackson.databind.JsonNode selectObjectQuery, String objectId) throws InvalidParseOperationException, AccessInternalClientServerException, AccessInternalClientNotFoundException, AccessUnauthorizedException
selectObjectQuery - the query to be executedobjectId - the Id of the ObjectGroupInvalidParseOperationException - if the query is not well formattedAccessInternalClientServerException - if the server encountered an exceptionAccessInternalClientNotFoundException - if the requested object does not existAccessUnauthorizedExceptionjavax.ws.rs.core.Response getObject(String objectGroupId, String usage, int version) throws InvalidParseOperationException, AccessInternalClientServerException, AccessInternalClientNotFoundException, AccessUnauthorizedException
objectGroupId - the Id of the ObjectGroupusage - the requested usageversion - the requested version of the usageInvalidParseOperationException - if the query is not well formattedAccessInternalClientServerException - if the server encountered an exceptionAccessInternalClientNotFoundException - if the requested object does not existAccessUnauthorizedExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> selectOperation(com.fasterxml.jackson.databind.JsonNode select) throws LogbookClientException, InvalidParseOperationException, AccessUnauthorizedException, VitamDBException
select - LogbookClientExceptionInvalidParseOperationExceptionAccessUnauthorizedExceptionVitamDBExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> selectOperationById(String processId, com.fasterxml.jackson.databind.JsonNode queryDsl) throws LogbookClientException, InvalidParseOperationException, AccessUnauthorizedException
processId - ID of the operationqueryDsl - query to be executedLogbookClientExceptionInvalidParseOperationExceptionAccessUnauthorizedExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> selectUnitLifeCycleById(String idUnit, com.fasterxml.jackson.databind.JsonNode queryDsl) throws LogbookClientException, InvalidParseOperationException, AccessUnauthorizedException
idUnit - queryDsl - query to be executedLogbookClientExceptionInvalidParseOperationExceptionAccessUnauthorizedExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> selectUnitLifeCycle(com.fasterxml.jackson.databind.JsonNode queryDsl) throws LogbookClientException, InvalidParseOperationException, AccessUnauthorizedException
queryDsl - LogbookClientExceptionInvalidParseOperationExceptionAccessUnauthorizedExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> selectObjectGroupLifeCycleById(String idObject, com.fasterxml.jackson.databind.JsonNode queryDsl) throws LogbookClientException, InvalidParseOperationException, AccessUnauthorizedException
idObject - queryDsl - query to be executedLogbookClientExceptionInvalidParseOperationExceptionAccessUnauthorizedExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> checkTraceabilityOperation(com.fasterxml.jackson.databind.JsonNode query) throws LogbookClientServerException, InvalidParseOperationException, AccessUnauthorizedException
query - to be executedLogbookClientServerExceptionAccessUnauthorizedExceptionInvalidParseOperationExceptionjavax.ws.rs.core.Response downloadTraceabilityFile(String operationId) throws AccessInternalClientServerException, AccessInternalClientNotFoundException, InvalidParseOperationException, AccessUnauthorizedException
operationId - AccessUnauthorizedExceptionAccessInternalClientServerExceptionAccessInternalClientNotFoundExceptionInvalidParseOperationExceptionjavax.ws.rs.core.Response getUnitByIdWithXMLFormat(com.fasterxml.jackson.databind.JsonNode queryDsl,
String idUnit)
throws AccessInternalClientServerException,
AccessInternalClientNotFoundException,
AccessUnauthorizedException,
InvalidParseOperationException
queryDsl - idUnit - AccessInternalClientServerExceptionAccessInternalClientNotFoundExceptionAccessUnauthorizedExceptionInvalidParseOperationExceptionjavax.ws.rs.core.Response getObjectByIdWithXMLFormat(com.fasterxml.jackson.databind.JsonNode queryDsl,
String objectId)
throws AccessInternalClientServerException,
AccessInternalClientNotFoundException,
AccessUnauthorizedException,
InvalidParseOperationException
queryDsl - the given query dslobjectId - the given object group idAccessInternalClientServerExceptionAccessInternalClientNotFoundExceptionAccessUnauthorizedExceptionInvalidParseOperationExceptionjavax.ws.rs.core.Response getObjectByUnitIdWithXMLFormat(com.fasterxml.jackson.databind.JsonNode queryDsl,
String unitId)
throws AccessInternalClientServerException,
AccessInternalClientNotFoundException,
AccessUnauthorizedException,
InvalidParseOperationException
queryDsl - the given query dslunitId - the given object group idAccessInternalClientServerExceptionAccessInternalClientNotFoundExceptionAccessUnauthorizedExceptionInvalidParseOperationExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> exportDIP(com.fasterxml.jackson.databind.JsonNode queryJson) throws AccessInternalClientServerException
queryJson - query for the DIP creationAccessInternalClientServerExceptionjavax.ws.rs.core.Response findDIPByID(String id) throws AccessInternalClientServerException
id - operationIdAccessInternalClientServerExceptionCopyright © 2018 Vitam. All rights reserved.