Interface ExtractSedaStrategy
- All Known Implementing Classes:
CollectExtractSedaStrategy,VitamExtractSedaStrategy
public interface ExtractSedaStrategy
SEDA extraction algorithms that differ between a standard Vitam ingest and a collect transaction. The implementation
is selected once by the ExtractSedaActionHandler, so callers hold no collect-vs-ingest branching.
-
Method Summary
Modifier and TypeMethodDescriptionresolveRootAttachmentParentIds(com.fasterxml.jackson.databind.JsonNode archiveUnitNode, boolean carriesUpdateOperation) Resolves every archive unit a SIP root must be attached to.
-
Method Details
-
resolveRootAttachmentParentId
- Returns:
- the guid of the archive unit the SIP roots must be attached to, or
Optional.empty()when no attachment is requested.
-
resolveRootAttachmentParentIds
default Set<String> resolveRootAttachmentParentIds(com.fasterxml.jackson.databind.JsonNode archiveUnitNode, boolean carriesUpdateOperation) Resolves every archive unit a SIP root must be attached to. Only a collect transaction can offer several positions. The default implementation delegates toresolveRootAttachmentParentId().- 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
-