Class MetadataService
- java.lang.Object
-
- fr.gouv.vitam.collect.internal.core.service.MetadataService
-
public class MetadataService extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MetadataService(MetadataRepository metadataRepository, ProjectRepository projectRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
saveArchiveUnit(com.fasterxml.jackson.databind.JsonNode unit, TransactionModel transactionModel)
com.fasterxml.jackson.databind.JsonNode
selectObjectGroupById(java.lang.String objectGroupId)
com.fasterxml.jackson.databind.JsonNode
selectUnitById(java.lang.String unitId)
RequestResponseOK<com.fasterxml.jackson.databind.JsonNode>
selectUnitsByTransactionId(com.fasterxml.jackson.databind.JsonNode queryDsl, java.lang.String transactionId)
com.fasterxml.jackson.databind.JsonNode
selectUnitsWithInheritedRules(java.lang.String transactionId, com.fasterxml.jackson.databind.JsonNode queryDsl)
void
updateUnits(TransactionModel transaction, java.io.InputStream is)
-
-
-
Constructor Detail
-
MetadataService
public MetadataService(MetadataRepository metadataRepository, ProjectRepository projectRepository)
-
-
Method Detail
-
selectUnitById
public com.fasterxml.jackson.databind.JsonNode selectUnitById(java.lang.String unitId) throws CollectInternalException
- Throws:
CollectInternalException
-
selectObjectGroupById
public com.fasterxml.jackson.databind.JsonNode selectObjectGroupById(java.lang.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
-
updateUnits
public void updateUnits(TransactionModel transaction, java.io.InputStream is) throws CollectInternalException
- Throws:
CollectInternalException
-
selectUnitsByTransactionId
public RequestResponseOK<com.fasterxml.jackson.databind.JsonNode> selectUnitsByTransactionId(com.fasterxml.jackson.databind.JsonNode queryDsl, java.lang.String transactionId) throws CollectInternalException
- Throws:
CollectInternalException
-
selectUnitsWithInheritedRules
public com.fasterxml.jackson.databind.JsonNode selectUnitsWithInheritedRules(java.lang.String transactionId, com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException
- Throws:
InvalidParseOperationException
-
-