Class PersistentIdentifierGenerationService
java.lang.Object
fr.gouv.vitam.worker.core.handler.PersistentIdentifierGenerationService
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fillArkPersistentIdentifier
(PersistentIdentifierPolicy policy, com.fasterxml.jackson.databind.JsonNode qualifierToUpdate) Fill generated persistent identifier on objects according to management contract settingsvoid
handlePersistentIdentifierForGot
(Map<String, List<com.fasterxml.jackson.databind.JsonNode>> objectsByQualifierMap, ManagementContractModel managementContractModel, PersistentIdentifierPolicyTypeEnum persistentIdentifierType) Service to fill generated persistent identifiers and management contract id on objectsvoid
handlePersistentIdentifierForUnit
(ArchiveUnitRoot archiveUnitRoot, String unitGUID, ManagementContractModel managementContractModel, PersistentIdentifierPolicyTypeEnum persistentIdentifierType)
-
Field Details
-
PERSISTENT_IDENTIFIER_FIELD
- See Also:
-
-
Constructor Details
-
PersistentIdentifierGenerationService
public PersistentIdentifierGenerationService()
-
-
Method Details
-
getInstance
-
handlePersistentIdentifierForGot
public void handlePersistentIdentifierForGot(Map<String, List<com.fasterxml.jackson.databind.JsonNode>> objectsByQualifierMap, ManagementContractModel managementContractModel, PersistentIdentifierPolicyTypeEnum persistentIdentifierType) throws InvalidParseOperationExceptionService to fill generated persistent identifiers and management contract id on objects- Parameters:
objectsByQualifierMap
- map containing the qualifier -> list of objectsmanagementContractModel
- the management contract- Throws:
InvalidParseOperationException
-
fillArkPersistentIdentifier
public void fillArkPersistentIdentifier(PersistentIdentifierPolicy policy, com.fasterxml.jackson.databind.JsonNode qualifierToUpdate) throws InvalidParseOperationException Fill generated persistent identifier on objects according to management contract settings- Parameters:
policy
-qualifierToUpdate
-- Throws:
InvalidParseOperationException
-
handlePersistentIdentifierForUnit
public void handlePersistentIdentifierForUnit(ArchiveUnitRoot archiveUnitRoot, String unitGUID, ManagementContractModel managementContractModel, PersistentIdentifierPolicyTypeEnum persistentIdentifierType)
-