public class AccessInternalModuleImpl extends Object implements AccessInternalModule
| Constructor and Description |
|---|
AccessInternalModuleImpl()
AccessModuleImpl constructor
|
AccessInternalModuleImpl(LogbookLifeCyclesClientFactory logbookLifeCyclesClientFactory,
LogbookOperationsClientFactory logbookOperationsClientFactory,
StorageClientFactory storageClientFactory,
WorkspaceClientFactory workspaceClientFactory,
AdminManagementClientFactory adminManagementClientFactory,
MetaDataClientFactory metaDataClientFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClassificationLevel(com.fasterxml.jackson.databind.JsonNode query)
check ClassificationLevel in update Unit
|
javax.ws.rs.core.Response |
findDIPByOperationId(String id)
retrieve a DIP file according to an operationId
|
javax.ws.rs.core.Response |
findTransferSIPByOperationId(String id)
retrieve a SIP file according to an operationId
|
javax.ws.rs.core.Response |
getAccessLog(com.fasterxml.jackson.databind.JsonNode params)
Retrieve all accessLog by the concatenation of all accesslog files as InputStream
|
javax.ws.rs.core.Response |
getOneObjectFromObjectGroup(String idObjectGroup,
String qualifier,
int version,
String idUnit)
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 jsonQuery,
String idObjectGroup)
Retrieve an ObjectGroup by its id with results fields filtered based on given query
|
com.fasterxml.jackson.databind.JsonNode |
selectObjects(com.fasterxml.jackson.databind.JsonNode jsonQuery)
select Object
|
com.fasterxml.jackson.databind.JsonNode |
selectUnit(com.fasterxml.jackson.databind.JsonNode jsonQuery)
select Unit
|
com.fasterxml.jackson.databind.JsonNode |
selectUnitbyId(com.fasterxml.jackson.databind.JsonNode jsonQuery,
String idUnit)
select Unit by id
|
com.fasterxml.jackson.databind.JsonNode |
selectUnitsWithInheritedRules(com.fasterxml.jackson.databind.JsonNode jsonQuery)
Select units by DSL and computes inherited rules for matching units
|
javax.ws.rs.core.Response |
startComputeInheritedRules(com.fasterxml.jackson.databind.JsonNode dslQuery) |
com.fasterxml.jackson.databind.JsonNode |
updateUnitById(com.fasterxml.jackson.databind.JsonNode queryJson,
String idUnit,
String requestId)
update Unit by id
|
public AccessInternalModuleImpl()
public AccessInternalModuleImpl(LogbookLifeCyclesClientFactory logbookLifeCyclesClientFactory, LogbookOperationsClientFactory logbookOperationsClientFactory, StorageClientFactory storageClientFactory, WorkspaceClientFactory workspaceClientFactory, AdminManagementClientFactory adminManagementClientFactory, MetaDataClientFactory metaDataClientFactory)
public com.fasterxml.jackson.databind.JsonNode selectUnit(com.fasterxml.jackson.databind.JsonNode jsonQuery)
throws IllegalArgumentException,
InvalidParseOperationException,
AccessInternalExecutionException
selectUnit in interface AccessInternalModulejsonQuery - as String { $query : query}InvalidParseOperationException - Throw if json format is not correctAccessInternalExecutionException - Throw if error occurs when send Unit to databaseIllegalArgumentException - if json query is nullpublic com.fasterxml.jackson.databind.JsonNode selectUnitbyId(com.fasterxml.jackson.databind.JsonNode jsonQuery,
String idUnit)
throws InvalidParseOperationException,
AccessInternalExecutionException,
MetaDataNotFoundException
AccessInternalModuleselectUnitbyId in interface AccessInternalModulejsonQuery - as String { $query : query}idUnit - as StringInvalidParseOperationException - Throw if json format is not correctAccessInternalExecutionException - Throw if error occurs when send Unit to databaseMetaDataNotFoundExceptionpublic com.fasterxml.jackson.databind.JsonNode selectObjectGroupById(com.fasterxml.jackson.databind.JsonNode jsonQuery,
String idObjectGroup)
throws InvalidParseOperationException,
AccessInternalExecutionException,
MetaDataNotFoundException
AccessInternalModuleselectObjectGroupById in interface AccessInternalModulejsonQuery - the query DSL as a Json nodeidObjectGroup - the id of the ObjectGroup asInvalidParseOperationException - thrown if json query is not syntactically correctAccessInternalExecutionException - in case of access failureMetaDataNotFoundExceptionpublic javax.ws.rs.core.Response getOneObjectFromObjectGroup(String idObjectGroup, String qualifier, int version, String idUnit) throws StorageNotFoundException, AccessInternalExecutionException, MetaDataNotFoundException, InvalidParseOperationException
AccessInternalModulegetOneObjectFromObjectGroup in interface AccessInternalModuleidObjectGroup - The Object Group Idqualifier - the qualifier to be retrieve (ie: Dissemination etc.)version - the version number to getidUnit - identifier of the parent archiveunit used to have access to the objectStorageNotFoundException - If the object is not found in storageAccessInternalExecutionException - For other technical errorsMetaDataNotFoundExceptionInvalidParseOperationException - when a query is badly structuredpublic javax.ws.rs.core.Response getAccessLog(com.fasterxml.jackson.databind.JsonNode params)
throws AccessInternalExecutionException,
StorageNotFoundException,
ParseException
AccessInternalModulegetAccessLog in interface AccessInternalModuleparams - a json containing query on StartDate or EndDateAccessInternalExecutionExceptionStorageNotFoundExceptionParseExceptionpublic void checkClassificationLevel(com.fasterxml.jackson.databind.JsonNode query)
throws InvalidParseOperationException
AccessInternalModulecheckClassificationLevel in interface AccessInternalModulequery - queryInvalidParseOperationException - InvalidParseOperationExceptionpublic com.fasterxml.jackson.databind.JsonNode updateUnitById(com.fasterxml.jackson.databind.JsonNode queryJson,
String idUnit,
String requestId)
throws MetaDataNotFoundException,
IllegalArgumentException,
InvalidParseOperationException,
AccessInternalExecutionException,
UpdatePermissionException,
AccessInternalRuleExecutionException
AccessInternalModuleupdateUnitById in interface AccessInternalModulequeryJson - json update queryidUnit - as StringrequestId - the request idMetaDataNotFoundException - Throw if unit is not foundIllegalArgumentException - Throw if error occurs when checking argumentInvalidParseOperationException - Throw if json format is not correctAccessInternalExecutionException - Throw if error occurs when send Unit to databaseAccessInternalRuleExecutionException - Throw When error occures on rules update checkUpdatePermissionExceptionpublic javax.ws.rs.core.Response findDIPByOperationId(String id) throws AccessInternalExecutionException
AccessInternalModulefindDIPByOperationId in interface AccessInternalModuleid - operation idAccessInternalExecutionExceptionpublic javax.ws.rs.core.Response findTransferSIPByOperationId(String id) throws AccessInternalExecutionException
AccessInternalModulefindTransferSIPByOperationId in interface AccessInternalModuleid - operation idAccessInternalExecutionExceptionpublic com.fasterxml.jackson.databind.JsonNode selectObjects(com.fasterxml.jackson.databind.JsonNode jsonQuery)
throws IllegalArgumentException,
InvalidParseOperationException,
AccessInternalExecutionException
selectObjects in interface AccessInternalModulejsonQuery - as String { $query : query}InvalidParseOperationException - Throw if json format is not correctAccessInternalExecutionException - Throw if error occurs when send Object to databaseIllegalArgumentException - if json query is nullpublic com.fasterxml.jackson.databind.JsonNode selectUnitsWithInheritedRules(com.fasterxml.jackson.databind.JsonNode jsonQuery)
throws IllegalArgumentException,
InvalidParseOperationException,
AccessInternalExecutionException
AccessInternalModuleselectUnitsWithInheritedRules in interface AccessInternalModulejsonQuery - the query DSLIllegalArgumentException - Throw if json format is not correctInvalidParseOperationExceptionAccessInternalExecutionException - Throw if error occurs when send Unit to databasepublic javax.ws.rs.core.Response startComputeInheritedRules(com.fasterxml.jackson.databind.JsonNode dslQuery)
throws AccessInternalException
startComputeInheritedRules in interface AccessInternalModuleAccessInternalExceptionCopyright © 2019 Vitam. All rights reserved.