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 Details

    • resolveRootAttachmentParentId

      Optional<String> 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 to resolveRootAttachmentParentId().
      Parameters:
      archiveUnitNode - the extracted archive unit, holding its descriptive metadata and its _mgt block
      carriesUpdateOperation - whether the unit declares an UpdateOperation of its own
      Returns:
      the parent unit ids, empty when no attachment applies