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, getServiceUrl
com.fasterxml.jackson.databind.JsonNode insertUnit(com.fasterxml.jackson.databind.JsonNode insertQuery) throws InvalidParseOperationException, MetaDataExecutionException, MetaDataNotFoundException, MetaDataAlreadyExistException, MetaDataDocumentSizeException, MetaDataClientServerException
insertQuery
- as JsonNode InvalidParseOperationException
MetaDataExecutionException
MetaDataNotFoundException
MetaDataAlreadyExistException
MetaDataDocumentSizeException
MetaDataClientServerException
com.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)InvalidParseOperationException
MetaDataDocumentSizeException
- thrown when Query document Size is Too LargeMetaDataClientServerException
VitamDBException
com.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)InvalidParseOperationException
MetaDataDocumentSizeException
- thrown when Query document Size is Too LargeMetaDataClientServerException
com.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 blankMetaDataClientServerException
com.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)InvalidParseOperationException
MetaDataDocumentSizeException
- thrown when Query document Size is Too LargeMetaDataNotFoundException
MetaDataClientServerException
com.fasterxml.jackson.databind.JsonNode insertObjectGroup(com.fasterxml.jackson.databind.JsonNode insertQuery) throws InvalidParseOperationException, MetaDataExecutionException, MetaDataNotFoundException, MetaDataAlreadyExistException, MetaDataDocumentSizeException, MetaDataClientServerException
insertQuery
- as StringInvalidParseOperationException
MetaDataExecutionException
MetaDataNotFoundException
MetaDataAlreadyExistException
MetaDataDocumentSizeException
MetaDataClientServerException
void updateObjectGroupById(com.fasterxml.jackson.databind.JsonNode updateQuery, String objectGroupId) throws InvalidParseOperationException, MetaDataClientServerException, MetaDataExecutionException
updateQuery
- objectGroupId
- InvalidParseOperationException
MetaDataNotFoundException
MetaDataAlreadyExistException
MetaDataDocumentSizeException
MetaDataClientServerException
MetaDataExecutionException
List<UnitPerOriginatingAgency> selectAccessionRegisterOnUnitByOperationId(String operationId) throws MetaDataClientServerException
operationId
- MetaDataClientServerException
List<ObjectGroupPerOriginatingAgency> selectAccessionRegisterOnObjectByOperationId(String operationId) throws MetaDataClientServerException
operationId
- MetaDataClientServerException
com.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)InvalidParseOperationException
MetaDataDocumentSizeException
- thrown when Query document Size is Too LargeMetaDataClientServerException
boolean flushUnits() throws MetaDataClientServerException
MetaDataClientServerException
boolean flushObjectGroups() throws MetaDataClientServerException
MetaDataClientServerException
com.fasterxml.jackson.databind.JsonNode reindex(IndexParameters indexParam) throws InvalidParseOperationException, MetaDataClientServerException, MetaDataNotFoundException
indexParam
- reindexation parametersMetaDataClientServerException
MetaDataNotFoundException
- in case the index does not existInvalidParseOperationException
com.fasterxml.jackson.databind.JsonNode switchIndexes(SwitchIndexParameters switchIndexParam) throws InvalidParseOperationException, MetaDataClientServerException, MetaDataNotFoundException
switchIndexParam
- switch index parametersMetaDataClientServerException
MetaDataNotFoundException
- in case the index does not existInvalidParseOperationException
RequestResponse<com.fasterxml.jackson.databind.JsonNode> getUnitByIdRaw(String unitId) throws VitamClientException
unitId
- : unit id VitamClientException
RequestResponse<com.fasterxml.jackson.databind.JsonNode> getObjectGroupByIdRaw(String objectGroupId) throws VitamClientException
objectGroupId
- : objectGroup id VitamClientException
Copyright © 2018 Vitam. All rights reserved.