Class CollectExtractSedaStrategy

java.lang.Object
fr.gouv.vitam.worker.core.extractseda.CollectExtractSedaStrategy
All Implemented Interfaces:
ExtractSedaStrategy

public class CollectExtractSedaStrategy extends Object implements ExtractSedaStrategy
  • Constructor Details

  • Method Details

    • resolveRootAttachmentParentId

      public Optional<String> resolveRootAttachmentParentId()
      Specified by:
      resolveRootAttachmentParentId in interface ExtractSedaStrategy
      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:
      resolveRootAttachmentParentIds in interface ExtractSedaStrategy
      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