Class CollectAttachmentContextLoader
java.lang.Object
fr.gouv.vitam.worker.core.extractseda.CollectAttachmentContextLoader
Builds the attachment context of a collect SIP ingest. The attachment units themselves are read from metadata
collect, where they were created before the workflow was started ; only the rules that select them, which live on the
project, are read from collect internal.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
CollectAttachmentContextLoader
public CollectAttachmentContextLoader()
-
-
Method Details
-
load
public CollectAttachmentContext load(HandlerIO handlerIO, String transactionId, String explicitAttachmentUnitId) throws ProcessingException - Parameters:
handlerIO- handler of the current step, giving access to the collect clientstransactionId- transaction the SIP is uploaded onexplicitAttachmentUnitId- unit id given through the X-Attachement-Id header, may be null- Returns:
- the attachment context to apply to the root units of the SIP
- Throws:
ProcessingException
-