public interface AccessInternalModule
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
findDIPByOperationId(String id)
retrieve a DIP file according to an operationId
|
javax.ws.rs.core.Response |
getOneObjectFromObjectGroup(String idObjectGroup,
String qualifier,
int version)
Retrieve an object as InputStream based on the associated ObjectGroupId and qualifier + version requested
|
com.fasterxml.jackson.databind.JsonNode |
selectObjectGroupById(com.fasterxml.jackson.databind.JsonNode queryJson,
String idObjectGroup)
Retrieve an ObjectGroup by its id with results fields filtered based on given query
|
com.fasterxml.jackson.databind.JsonNode |
selectUnit(com.fasterxml.jackson.databind.JsonNode queryJson)
select Unit
|
com.fasterxml.jackson.databind.JsonNode |
selectUnitbyId(com.fasterxml.jackson.databind.JsonNode queryJson,
String idUnit)
select Unit by id
|
com.fasterxml.jackson.databind.JsonNode |
updateUnitbyId(com.fasterxml.jackson.databind.JsonNode queryJson,
String idUnit,
String requestId)
update Unit by id
|
com.fasterxml.jackson.databind.JsonNode selectUnit(com.fasterxml.jackson.databind.JsonNode queryJson) throws InvalidParseOperationException, AccessInternalExecutionException, VitamDBException, MetaDataDocumentSizeException, MetaDataExecutionException, MetaDataClientServerException
queryJson
- as String { $query : query}IllegalArgumentException
- if json query is nullInvalidParseOperationException
- Throw if json format is not correctAccessInternalExecutionException
- Throw if error occurs when send Unit to databaseVitamDBException
MetaDataDocumentSizeException
MetaDataExecutionException
MetaDataClientServerException
com.fasterxml.jackson.databind.JsonNode selectUnitbyId(com.fasterxml.jackson.databind.JsonNode queryJson, String idUnit) throws InvalidParseOperationException, AccessInternalExecutionException
queryJson
- as String { $query : query}idUnit
- as StringInvalidParseOperationException
- Throw if json format is not correctAccessInternalExecutionException
- Throw if error occurs when send Unit to databaseIllegalArgumentException
- Throw if error occurs when checking argumentcom.fasterxml.jackson.databind.JsonNode updateUnitbyId(com.fasterxml.jackson.databind.JsonNode queryJson, String idUnit, String requestId) throws MetaDataNotFoundException, InvalidParseOperationException, AccessInternalExecutionException, IllegalArgumentException, AccessInternalRuleExecutionException
queryJson
- json update queryidUnit
- as StringrequestId
- the request idInvalidParseOperationException
- Throw if json format is not correctAccessInternalExecutionException
- Throw if error occurs when send Unit to databaseAccessInternalRuleExecutionException
- Throw When error occures on rules update checkIllegalArgumentException
- Throw if error occurs when checking argumentMetaDataNotFoundException
- Throw if unit is not foundcom.fasterxml.jackson.databind.JsonNode selectObjectGroupById(com.fasterxml.jackson.databind.JsonNode queryJson, String idObjectGroup) throws InvalidParseOperationException, AccessInternalExecutionException
queryJson
- the query DSL as a Json nodeidObjectGroup
- the id of the ObjectGroup asIllegalArgumentException
- in case of null/incorrect parametersInvalidParseOperationException
- thrown if json query is not syntactically correctAccessInternalExecutionException
- in case of access failurejavax.ws.rs.core.Response getOneObjectFromObjectGroup(String idObjectGroup, String qualifier, int version) throws MetaDataNotFoundException, StorageNotFoundException, InvalidParseOperationException, AccessInternalExecutionException
idObjectGroup
- The Object Group Idqualifier
- the qualifier to be retrieve (ie: Dissemination etc.)version
- the version number to getMetaDataNotFoundException
- If the ObjectGroup could not be findStorageNotFoundException
- If the object is not found in storageInvalidParseOperationException
- when a query is badly structuredAccessInternalExecutionException
- For other technical errorsjavax.ws.rs.core.Response findDIPByOperationId(String id) throws AccessInternalExecutionException
id
- operation idAccessInternalExecutionException
Copyright © 2018 Vitam. All rights reserved.