Class MetadataRepository
java.lang.Object
fr.gouv.vitam.collect.internal.core.repository.MetadataRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequestResponse<com.fasterxml.jackson.databind.JsonNode>atomicBulkUpdate(List<com.fasterxml.jackson.databind.JsonNode> updateMultiQueries) voiddeleteObjectGroups(Collection<String> listGotGUID) voiddeleteUnits(Collection<String> listUnitIds) com.fasterxml.jackson.databind.JsonNodesaveArchiveUnit(com.fasterxml.jackson.databind.node.ObjectNode unit) com.fasterxml.jackson.databind.JsonNodesaveArchiveUnits(List<com.fasterxml.jackson.databind.node.ObjectNode> units) com.fasterxml.jackson.databind.JsonNodesaveObjectGroup(com.fasterxml.jackson.databind.node.ObjectNode og) com.fasterxml.jackson.databind.JsonNodesaveObjectGroups(List<com.fasterxml.jackson.databind.node.ObjectNode> objectGroups) com.fasterxml.jackson.databind.JsonNodeselectObjectGroupById(String objectGroupId, boolean isRaw) com.fasterxml.jackson.databind.JsonNodeselectObjectGroups(com.fasterxml.jackson.databind.JsonNode queryDsl, String transactionId) ScrollSpliterator<com.fasterxml.jackson.databind.JsonNode>selectObjectGroups(SelectMultiQuery request, String transactionId) com.fasterxml.jackson.databind.JsonNodeselectUnitById(String unitId) RequestResponseOK<com.fasterxml.jackson.databind.JsonNode>selectUnits(com.fasterxml.jackson.databind.JsonNode queryDsl, String transactionId) ScrollSpliterator<com.fasterxml.jackson.databind.JsonNode>selectUnits(SelectMultiQuery request, String transactionId) com.fasterxml.jackson.databind.JsonNodeselectUnitsWithInheritedRules(com.fasterxml.jackson.databind.JsonNode jsonQuery, String transactionId) voidupdateObjectGroupById(UpdateMultiQuery updateQuery, String objectGroupId, String transactionId) voidupdateUnitById(UpdateMultiQuery updateQuery, String transactionId, String unitId)
-
Constructor Details
-
MetadataRepository
-
-
Method Details
-
selectUnits
public RequestResponseOK<com.fasterxml.jackson.databind.JsonNode> selectUnits(com.fasterxml.jackson.databind.JsonNode queryDsl, @Nonnull String transactionId) throws CollectInternalException - Throws:
CollectInternalException
-
selectUnits
public ScrollSpliterator<com.fasterxml.jackson.databind.JsonNode> selectUnits(SelectMultiQuery request, @Nonnull String transactionId) -
selectObjectGroups
public ScrollSpliterator<com.fasterxml.jackson.databind.JsonNode> selectObjectGroups(SelectMultiQuery request, @Nonnull String transactionId) -
selectUnitById
public com.fasterxml.jackson.databind.JsonNode selectUnitById(String unitId) throws CollectInternalException - Throws:
CollectInternalException
-
selectObjectGroups
public com.fasterxml.jackson.databind.JsonNode selectObjectGroups(com.fasterxml.jackson.databind.JsonNode queryDsl, @Nonnull String transactionId) throws CollectInternalException - Throws:
CollectInternalException
-
selectObjectGroupById
public com.fasterxml.jackson.databind.JsonNode selectObjectGroupById(String objectGroupId, boolean isRaw) throws CollectInternalException - Throws:
CollectInternalException
-
atomicBulkUpdate
public RequestResponse<com.fasterxml.jackson.databind.JsonNode> atomicBulkUpdate(@Nonnull List<com.fasterxml.jackson.databind.JsonNode> updateMultiQueries) throws CollectInternalException - Throws:
CollectInternalException
-
saveArchiveUnit
public com.fasterxml.jackson.databind.JsonNode saveArchiveUnit(com.fasterxml.jackson.databind.node.ObjectNode unit) throws CollectInternalException - Throws:
CollectInternalException
-
saveArchiveUnits
public com.fasterxml.jackson.databind.JsonNode saveArchiveUnits(List<com.fasterxml.jackson.databind.node.ObjectNode> units) throws CollectInternalException - Throws:
CollectInternalException
-
updateUnitById
public void updateUnitById(UpdateMultiQuery updateQuery, String transactionId, String unitId) throws CollectInternalException - Throws:
CollectInternalException
-
saveObjectGroup
public com.fasterxml.jackson.databind.JsonNode saveObjectGroup(com.fasterxml.jackson.databind.node.ObjectNode og) throws CollectInternalException - Throws:
CollectInternalException
-
saveObjectGroups
public com.fasterxml.jackson.databind.JsonNode saveObjectGroups(List<com.fasterxml.jackson.databind.node.ObjectNode> objectGroups) throws CollectInternalException - Throws:
CollectInternalException
-
updateObjectGroupById
public void updateObjectGroupById(UpdateMultiQuery updateQuery, String objectGroupId, String transactionId) throws CollectInternalException - Throws:
CollectInternalException
-
deleteUnits
- Throws:
CollectInternalException
-
deleteObjectGroups
- Throws:
CollectInternalException
-
selectUnitsWithInheritedRules
public com.fasterxml.jackson.databind.JsonNode selectUnitsWithInheritedRules(com.fasterxml.jackson.databind.JsonNode jsonQuery, @Nonnull String transactionId) throws InvalidParseOperationException - Throws:
InvalidParseOperationException
-