Search in sources :

Example 1 with ContentAssemblerDefault

use of com.opentext.ia.sdk.sip.ContentAssemblerDefault in project infoarchive-sip-sdk by Enterprise-Content-Management.

the class ActiveArchiver method newSipAssembler.

private static <D> SipAssembler<D> newSipAssembler(PackagingInformation prototype, String dssPrefix, PdiAssembler<D> pdiAssembler, DigitalObjectsExtraction<D> contentsExtraction) {
    PackagingInformationFactory factory = new OneSipPerDssPackagingInformationFactory(new DefaultPackagingInformationFactory(prototype), new SequentialDssIdSupplier(dssPrefix, 1));
    ContentAssembler<D> contentsAssembler = new ContentAssemblerDefault<>(contentsExtraction, new NoHashAssembler());
    return SipAssembler.forPdiAndContent(factory, pdiAssembler, contentsAssembler);
}
Also used : OneSipPerDssPackagingInformationFactory(com.opentext.ia.sdk.sip.OneSipPerDssPackagingInformationFactory) PackagingInformationFactory(com.opentext.ia.sdk.sip.PackagingInformationFactory) DefaultPackagingInformationFactory(com.opentext.ia.sdk.sip.DefaultPackagingInformationFactory) DefaultPackagingInformationFactory(com.opentext.ia.sdk.sip.DefaultPackagingInformationFactory) SequentialDssIdSupplier(com.opentext.ia.sdk.sip.SequentialDssIdSupplier) ContentAssemblerDefault(com.opentext.ia.sdk.sip.ContentAssemblerDefault) NoHashAssembler(com.opentext.ia.sdk.support.io.NoHashAssembler) OneSipPerDssPackagingInformationFactory(com.opentext.ia.sdk.sip.OneSipPerDssPackagingInformationFactory)

Aggregations

ContentAssemblerDefault (com.opentext.ia.sdk.sip.ContentAssemblerDefault)1 DefaultPackagingInformationFactory (com.opentext.ia.sdk.sip.DefaultPackagingInformationFactory)1 OneSipPerDssPackagingInformationFactory (com.opentext.ia.sdk.sip.OneSipPerDssPackagingInformationFactory)1 PackagingInformationFactory (com.opentext.ia.sdk.sip.PackagingInformationFactory)1 SequentialDssIdSupplier (com.opentext.ia.sdk.sip.SequentialDssIdSupplier)1 NoHashAssembler (com.opentext.ia.sdk.support.io.NoHashAssembler)1