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, getServiceUrl
RequestResponse<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 existAccessUnauthorizedException
BadRequestException
- if empty query is foundVitamDBException
RequestResponse<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 existAccessUnauthorizedException
RequestResponse<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 existAccessUnauthorizedException
AccessInternalRuleExecutionException
NoWritingPermissionException
RequestResponse<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 existAccessUnauthorizedException
javax.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 existAccessUnauthorizedException
RequestResponse<com.fasterxml.jackson.databind.JsonNode> selectOperation(com.fasterxml.jackson.databind.JsonNode select) throws LogbookClientException, InvalidParseOperationException, AccessUnauthorizedException, VitamDBException
select
- LogbookClientException
InvalidParseOperationException
AccessUnauthorizedException
VitamDBException
RequestResponse<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 executedLogbookClientException
InvalidParseOperationException
AccessUnauthorizedException
RequestResponse<com.fasterxml.jackson.databind.JsonNode> selectUnitLifeCycleById(String idUnit, com.fasterxml.jackson.databind.JsonNode queryDsl) throws LogbookClientException, InvalidParseOperationException, AccessUnauthorizedException
idUnit
- queryDsl
- query to be executedLogbookClientException
InvalidParseOperationException
AccessUnauthorizedException
RequestResponse<com.fasterxml.jackson.databind.JsonNode> selectUnitLifeCycle(com.fasterxml.jackson.databind.JsonNode queryDsl) throws LogbookClientException, InvalidParseOperationException, AccessUnauthorizedException
queryDsl
- LogbookClientException
InvalidParseOperationException
AccessUnauthorizedException
RequestResponse<com.fasterxml.jackson.databind.JsonNode> selectObjectGroupLifeCycleById(String idObject, com.fasterxml.jackson.databind.JsonNode queryDsl) throws LogbookClientException, InvalidParseOperationException, AccessUnauthorizedException
idObject
- queryDsl
- query to be executedLogbookClientException
InvalidParseOperationException
AccessUnauthorizedException
RequestResponse<com.fasterxml.jackson.databind.JsonNode> checkTraceabilityOperation(com.fasterxml.jackson.databind.JsonNode query) throws LogbookClientServerException, InvalidParseOperationException, AccessUnauthorizedException
query
- to be executedLogbookClientServerException
AccessUnauthorizedException
InvalidParseOperationException
javax.ws.rs.core.Response downloadTraceabilityFile(String operationId) throws AccessInternalClientServerException, AccessInternalClientNotFoundException, InvalidParseOperationException, AccessUnauthorizedException
operationId
- AccessUnauthorizedException
AccessInternalClientServerException
AccessInternalClientNotFoundException
InvalidParseOperationException
javax.ws.rs.core.Response getUnitByIdWithXMLFormat(com.fasterxml.jackson.databind.JsonNode queryDsl, String idUnit) throws AccessInternalClientServerException, AccessInternalClientNotFoundException, AccessUnauthorizedException, InvalidParseOperationException
queryDsl
- idUnit
- AccessInternalClientServerException
AccessInternalClientNotFoundException
AccessUnauthorizedException
InvalidParseOperationException
javax.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 idAccessInternalClientServerException
AccessInternalClientNotFoundException
AccessUnauthorizedException
InvalidParseOperationException
javax.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 idAccessInternalClientServerException
AccessInternalClientNotFoundException
AccessUnauthorizedException
InvalidParseOperationException
RequestResponse<com.fasterxml.jackson.databind.JsonNode> exportDIP(com.fasterxml.jackson.databind.JsonNode queryJson) throws AccessInternalClientServerException
queryJson
- query for the DIP creationAccessInternalClientServerException
javax.ws.rs.core.Response findDIPByID(String id) throws AccessInternalClientServerException
id
- operationIdAccessInternalClientServerException
Copyright © 2018 Vitam. All rights reserved.