Class MetadataService
java.lang.Object
fr.gouv.vitam.collect.internal.core.service.MetadataService
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMetadataService
(MetadataRepository metadataRepository, ProjectRepository projectRepository, BulkAtomicUpdateMetadataService bulkAtomicUpdateMetadataService) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
saveArchiveUnit
(com.fasterxml.jackson.databind.JsonNode unit, TransactionModel transactionModel) com.fasterxml.jackson.databind.JsonNode
selectObjectGroupById
(String objectGroupId) com.fasterxml.jackson.databind.JsonNode
selectUnitById
(String unitId) RequestResponseOK<com.fasterxml.jackson.databind.JsonNode>
selectUnitsByTransactionId
(com.fasterxml.jackson.databind.JsonNode queryDsl, String transactionId) com.fasterxml.jackson.databind.JsonNode
selectUnitsWithInheritedRules
(String transactionId, com.fasterxml.jackson.databind.JsonNode queryDsl) void
updateUnitsWithJsonlMetadata
(TransactionModel transaction, InputStream metadataJsonlInputStream) void
updateUnitsWithMetadataCsv
(TransactionModel transaction, InputStream is)
-
Field Details
-
BULK_SIZE
public static final int BULK_SIZE- See Also:
-
-
Constructor Details
-
MetadataService
public MetadataService(MetadataRepository metadataRepository, ProjectRepository projectRepository, BulkAtomicUpdateMetadataService bulkAtomicUpdateMetadataService)
-
-
Method Details
-
selectUnitById
public com.fasterxml.jackson.databind.JsonNode selectUnitById(String unitId) throws CollectInternalException - Throws:
CollectInternalException
-
selectObjectGroupById
public com.fasterxml.jackson.databind.JsonNode selectObjectGroupById(String objectGroupId) throws CollectInternalException - Throws:
CollectInternalException
-
saveArchiveUnit
public com.fasterxml.jackson.databind.JsonNode saveArchiveUnit(com.fasterxml.jackson.databind.JsonNode unit, TransactionModel transactionModel) throws CollectInternalException, InvalidParseOperationException -
updateUnitsWithMetadataCsv
public void updateUnitsWithMetadataCsv(TransactionModel transaction, InputStream is) throws CollectInternalException - Throws:
CollectInternalException
-
updateUnitsWithJsonlMetadata
public void updateUnitsWithJsonlMetadata(TransactionModel transaction, InputStream metadataJsonlInputStream) throws CollectInternalException - Throws:
CollectInternalException
-
selectUnitsByTransactionId
public RequestResponseOK<com.fasterxml.jackson.databind.JsonNode> selectUnitsByTransactionId(com.fasterxml.jackson.databind.JsonNode queryDsl, String transactionId) throws CollectInternalException - Throws:
CollectInternalException
-
selectUnitsWithInheritedRules
public com.fasterxml.jackson.databind.JsonNode selectUnitsWithInheritedRules(String transactionId, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException - Throws:
InvalidParseOperationException
-