Class MetadataRepository
- java.lang.Object
-
- fr.gouv.vitam.collect.internal.core.repository.MetadataRepository
-
public class MetadataRepository extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MetadataRepository(MetaDataClientFactory metaDataCollectClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestResponse<com.fasterxml.jackson.databind.JsonNode>
atomicBulkUpdate(java.util.List<com.fasterxml.jackson.databind.JsonNode> updateMultiQueries)
void
deleteObjectGroups(java.util.Collection<java.lang.String> listGotGUID)
void
deleteUnits(java.util.Collection<java.lang.String> listUnitIds)
com.fasterxml.jackson.databind.JsonNode
saveArchiveUnit(com.fasterxml.jackson.databind.node.ObjectNode unit)
com.fasterxml.jackson.databind.JsonNode
saveArchiveUnits(java.util.List<com.fasterxml.jackson.databind.node.ObjectNode> units)
com.fasterxml.jackson.databind.JsonNode
saveObjectGroup(com.fasterxml.jackson.databind.node.ObjectNode og)
com.fasterxml.jackson.databind.JsonNode
saveObjectGroups(java.util.List<com.fasterxml.jackson.databind.node.ObjectNode> objectGroups)
com.fasterxml.jackson.databind.JsonNode
selectObjectGroupById(java.lang.String objectGroupId, boolean isRaw)
com.fasterxml.jackson.databind.JsonNode
selectObjectGroups(com.fasterxml.jackson.databind.JsonNode queryDsl, java.lang.String transactionId)
com.fasterxml.jackson.databind.JsonNode
selectUnitById(java.lang.String unitId)
RequestResponseOK<com.fasterxml.jackson.databind.JsonNode>
selectUnits(com.fasterxml.jackson.databind.JsonNode queryDsl, java.lang.String transactionId)
ScrollSpliterator<com.fasterxml.jackson.databind.JsonNode>
selectUnits(SelectMultiQuery request, java.lang.String transactionId)
com.fasterxml.jackson.databind.JsonNode
selectUnitsWithInheritedRules(com.fasterxml.jackson.databind.JsonNode jsonQuery, java.lang.String transactionId)
void
updateObjectGroupById(UpdateMultiQuery updateQuery, java.lang.String objectGroupId, java.lang.String transactionId)
void
updateUnitById(UpdateMultiQuery updateQuery, java.lang.String transactionId, java.lang.String unitId)
-
-
-
Constructor Detail
-
MetadataRepository
public MetadataRepository(MetaDataClientFactory metaDataCollectClientFactory)
-
-
Method Detail
-
selectUnits
public RequestResponseOK<com.fasterxml.jackson.databind.JsonNode> selectUnits(com.fasterxml.jackson.databind.JsonNode queryDsl, @Nonnull java.lang.String transactionId) throws CollectInternalException
- Throws:
CollectInternalException
-
selectUnits
public ScrollSpliterator<com.fasterxml.jackson.databind.JsonNode> selectUnits(SelectMultiQuery request, @Nonnull java.lang.String transactionId)
-
selectUnitById
public com.fasterxml.jackson.databind.JsonNode selectUnitById(java.lang.String unitId) throws CollectInternalException
- Throws:
CollectInternalException
-
selectObjectGroups
public com.fasterxml.jackson.databind.JsonNode selectObjectGroups(com.fasterxml.jackson.databind.JsonNode queryDsl, @Nonnull java.lang.String transactionId) throws CollectInternalException
- Throws:
CollectInternalException
-
selectObjectGroupById
public com.fasterxml.jackson.databind.JsonNode selectObjectGroupById(java.lang.String objectGroupId, boolean isRaw) throws CollectInternalException
- Throws:
CollectInternalException
-
atomicBulkUpdate
public RequestResponse<com.fasterxml.jackson.databind.JsonNode> atomicBulkUpdate(@Nonnull java.util.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(java.util.List<com.fasterxml.jackson.databind.node.ObjectNode> units) throws CollectInternalException
- Throws:
CollectInternalException
-
updateUnitById
public void updateUnitById(UpdateMultiQuery updateQuery, java.lang.String transactionId, java.lang.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(java.util.List<com.fasterxml.jackson.databind.node.ObjectNode> objectGroups) throws CollectInternalException
- Throws:
CollectInternalException
-
updateObjectGroupById
public void updateObjectGroupById(UpdateMultiQuery updateQuery, java.lang.String objectGroupId, java.lang.String transactionId) throws CollectInternalException
- Throws:
CollectInternalException
-
deleteUnits
public void deleteUnits(java.util.Collection<java.lang.String> listUnitIds) throws CollectInternalException
- Throws:
CollectInternalException
-
deleteObjectGroups
public void deleteObjectGroups(java.util.Collection<java.lang.String> listGotGUID) throws CollectInternalException
- Throws:
CollectInternalException
-
selectUnitsWithInheritedRules
public com.fasterxml.jackson.databind.JsonNode selectUnitsWithInheritedRules(com.fasterxml.jackson.databind.JsonNode jsonQuery, @Nonnull java.lang.String transactionId) throws InvalidParseOperationException
- Throws:
InvalidParseOperationException
-
-