public interface MetaDataClient extends BasicClient
STATUS_URL| Modifier and Type | Method and Description |
|---|---|
boolean |
flushObjectGroups() |
boolean |
flushUnits() |
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
getObjectGroupByIdRaw(String objectGroupId)
Search object group by path unit id
|
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
getUnitByIdRaw(String unitId)
Search units by path unit id
|
com.fasterxml.jackson.databind.JsonNode |
insertObjectGroup(com.fasterxml.jackson.databind.JsonNode insertQuery) |
com.fasterxml.jackson.databind.JsonNode |
insertUnit(com.fasterxml.jackson.databind.JsonNode insertQuery) |
com.fasterxml.jackson.databind.JsonNode |
reindex(IndexParameters indexParam)
Reindex a collection with parameters
|
List<ObjectGroupPerOriginatingAgency> |
selectAccessionRegisterOnObjectByOperationId(String operationId) |
List<UnitPerOriginatingAgency> |
selectAccessionRegisterOnUnitByOperationId(String operationId) |
com.fasterxml.jackson.databind.JsonNode |
selectObjectGroups(com.fasterxml.jackson.databind.JsonNode selectQuery)
Search objectgroups by select query (DSL)
|
com.fasterxml.jackson.databind.JsonNode |
selectObjectGrouptbyId(com.fasterxml.jackson.databind.JsonNode selectQuery,
String objectGroupId)
Search Object Group by query (DSL) and path objectGroup id
|
com.fasterxml.jackson.databind.JsonNode |
selectUnitbyId(com.fasterxml.jackson.databind.JsonNode selectQuery,
String unitId)
Search units by query (DSL) and path unit id
|
com.fasterxml.jackson.databind.JsonNode |
selectUnits(com.fasterxml.jackson.databind.JsonNode selectQuery)
Search units by select query (DSL)
|
com.fasterxml.jackson.databind.JsonNode |
switchIndexes(SwitchIndexParameters switchIndexParam)
Switch indexes
|
void |
updateObjectGroupById(com.fasterxml.jackson.databind.JsonNode updateQuery,
String objectGroupId)
Update ObjectGroup
|
com.fasterxml.jackson.databind.JsonNode |
updateUnitbyId(com.fasterxml.jackson.databind.JsonNode updateQuery,
String unitId)
Update units by query (DSL) and path unit id
|
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrlcom.fasterxml.jackson.databind.JsonNode insertUnit(com.fasterxml.jackson.databind.JsonNode insertQuery)
throws InvalidParseOperationException,
MetaDataExecutionException,
MetaDataNotFoundException,
MetaDataAlreadyExistException,
MetaDataDocumentSizeException,
MetaDataClientServerException
insertQuery - as JsonNode InvalidParseOperationExceptionMetaDataExecutionExceptionMetaDataNotFoundExceptionMetaDataAlreadyExistExceptionMetaDataDocumentSizeExceptionMetaDataClientServerExceptioncom.fasterxml.jackson.databind.JsonNode selectUnits(com.fasterxml.jackson.databind.JsonNode selectQuery)
throws MetaDataExecutionException,
MetaDataDocumentSizeException,
InvalidParseOperationException,
MetaDataClientServerException,
VitamDBException
selectQuery - : select query SelectMultiQuery
as String MetaDataExecutionException - thrown when internal Server Error (fatal technical exception thrown)InvalidParseOperationExceptionMetaDataDocumentSizeException - thrown when Query document Size is Too LargeMetaDataClientServerExceptionVitamDBExceptioncom.fasterxml.jackson.databind.JsonNode selectUnitbyId(com.fasterxml.jackson.databind.JsonNode selectQuery,
String unitId)
throws MetaDataExecutionException,
MetaDataDocumentSizeException,
InvalidParseOperationException,
MetaDataClientServerException
selectQuery - : select query Select as JsonNode
unitId - : unit id MetaDataExecutionException - thrown when internal Server Error (fatal technical exception thrown)InvalidParseOperationExceptionMetaDataDocumentSizeException - thrown when Query document Size is Too LargeMetaDataClientServerExceptioncom.fasterxml.jackson.databind.JsonNode selectObjectGrouptbyId(com.fasterxml.jackson.databind.JsonNode selectQuery,
String objectGroupId)
throws MetaDataExecutionException,
MetaDataDocumentSizeException,
InvalidParseOperationException,
MetadataInvalidSelectException,
MetaDataClientServerException
selectQuery - : select query Select as JsonNode
objectGroupId - : objectGroup id MetaDataExecutionException - thrown when internal Server Error (fatal technical exception thrown)InvalidParseOperationException - thrown when the Query is badly formatted or objectGroupId is emptyMetaDataDocumentSizeException - thrown when Query document Size is Too LargeMetadataInvalidSelectException - thrown when objectGroupId or selectQuery id is null or blankMetaDataClientServerExceptioncom.fasterxml.jackson.databind.JsonNode updateUnitbyId(com.fasterxml.jackson.databind.JsonNode updateQuery,
String unitId)
throws MetaDataNotFoundException,
MetaDataExecutionException,
MetaDataDocumentSizeException,
InvalidParseOperationException,
MetaDataClientServerException
updateQuery - update query Select as JsonNode
unitId - unit id MetaDataExecutionException - thrown when internal Server Error (fatal technical exception thrown)InvalidParseOperationExceptionMetaDataDocumentSizeException - thrown when Query document Size is Too LargeMetaDataNotFoundExceptionMetaDataClientServerExceptioncom.fasterxml.jackson.databind.JsonNode insertObjectGroup(com.fasterxml.jackson.databind.JsonNode insertQuery)
throws InvalidParseOperationException,
MetaDataExecutionException,
MetaDataNotFoundException,
MetaDataAlreadyExistException,
MetaDataDocumentSizeException,
MetaDataClientServerException
insertQuery - as StringInvalidParseOperationExceptionMetaDataExecutionExceptionMetaDataNotFoundExceptionMetaDataAlreadyExistExceptionMetaDataDocumentSizeExceptionMetaDataClientServerExceptionvoid updateObjectGroupById(com.fasterxml.jackson.databind.JsonNode updateQuery,
String objectGroupId)
throws InvalidParseOperationException,
MetaDataClientServerException,
MetaDataExecutionException
updateQuery - objectGroupId - InvalidParseOperationExceptionMetaDataNotFoundExceptionMetaDataAlreadyExistExceptionMetaDataDocumentSizeExceptionMetaDataClientServerExceptionMetaDataExecutionExceptionList<UnitPerOriginatingAgency> selectAccessionRegisterOnUnitByOperationId(String operationId) throws MetaDataClientServerException
operationId - MetaDataClientServerExceptionList<ObjectGroupPerOriginatingAgency> selectAccessionRegisterOnObjectByOperationId(String operationId) throws MetaDataClientServerException
operationId - MetaDataClientServerExceptioncom.fasterxml.jackson.databind.JsonNode selectObjectGroups(com.fasterxml.jackson.databind.JsonNode selectQuery)
throws MetaDataExecutionException,
MetaDataDocumentSizeException,
InvalidParseOperationException,
MetaDataClientServerException
selectQuery - : select query SelectMultiQuery
as String MetaDataExecutionException - thrown when internal Server Error (fatal technical exception thrown)InvalidParseOperationExceptionMetaDataDocumentSizeException - thrown when Query document Size is Too LargeMetaDataClientServerExceptionboolean flushUnits()
throws MetaDataClientServerException
MetaDataClientServerExceptionboolean flushObjectGroups()
throws MetaDataClientServerException
MetaDataClientServerExceptioncom.fasterxml.jackson.databind.JsonNode reindex(IndexParameters indexParam) throws InvalidParseOperationException, MetaDataClientServerException, MetaDataNotFoundException
indexParam - reindexation parametersMetaDataClientServerExceptionMetaDataNotFoundException - in case the index does not existInvalidParseOperationExceptioncom.fasterxml.jackson.databind.JsonNode switchIndexes(SwitchIndexParameters switchIndexParam) throws InvalidParseOperationException, MetaDataClientServerException, MetaDataNotFoundException
switchIndexParam - switch index parametersMetaDataClientServerExceptionMetaDataNotFoundException - in case the index does not existInvalidParseOperationExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> getUnitByIdRaw(String unitId) throws VitamClientException
unitId - : unit id VitamClientExceptionRequestResponse<com.fasterxml.jackson.databind.JsonNode> getObjectGroupByIdRaw(String objectGroupId) throws VitamClientException
objectGroupId - : objectGroup id VitamClientExceptionCopyright © 2018 Vitam. All rights reserved.