Class CollectExtractSedaStrategy
java.lang.Object
fr.gouv.vitam.worker.core.extractseda.CollectExtractSedaStrategy
- All Implemented Interfaces:
ExtractSedaStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveRootAttachmentParentIds(com.fasterxml.jackson.databind.JsonNode archiveUnitNode, boolean carriesUpdateOperation) A collect transaction is the only context where a root unit can end up under several parents : the project may declare as many dynamic attachment positions as the unit metadata matches.
-
Constructor Details
-
CollectExtractSedaStrategy
-
-
Method Details
-
resolveRootAttachmentParentId
- Specified by:
resolveRootAttachmentParentIdin interfaceExtractSedaStrategy- Returns:
- the guid of the archive unit the SIP roots must be attached to, or
Optional.empty()when no attachment is requested.
-
resolveRootAttachmentParentIds
public Set<String> resolveRootAttachmentParentIds(com.fasterxml.jackson.databind.JsonNode archiveUnitNode, boolean carriesUpdateOperation) A collect transaction is the only context where a root unit can end up under several parents : the project may declare as many dynamic attachment positions as the unit metadata matches.- Specified by:
resolveRootAttachmentParentIdsin interfaceExtractSedaStrategy- Parameters:
archiveUnitNode- the extracted archive unit, holding its descriptive metadata and its _mgt blockcarriesUpdateOperation- whether the unit declares an UpdateOperation of its own- Returns:
- the parent unit ids, empty when no attachment applies
-