Package fr.gouv.vitam.common.manifest
Class ManifestBuilder
java.lang.Object
fr.gouv.vitam.common.manifest.ManifestBuilder
- All Implemented Interfaces:
AutoCloseable
build a SEDA manifest with JAXB.
-
Constructor Summary
ConstructorsConstructorDescriptionManifestBuilder(OutputStream outputStream, SupportedSedaVersions supportedSedaVersion) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidvoidvoidvoidvoidstartDocument(String operationId, ExportType exportType, ExportRequestParameters exportRequestParameters) voidvalidate(ExportType exportType, ExportRequestParameters exportRequestParameters) voidwriteArchivalAgreement(String archivalAgreement) voidwriteArchiveUnit(ArchiveUnitModel archiveUnitModel, com.google.common.collect.ListMultimap<String, String> multimap, Map<String, String> ogs) voidwriteArchiveUnitWithLFC(ArchiveUnitModel archiveUnitModel, com.google.common.collect.ListMultimap<String, String> multimap, Map<String, String> ogs, LogbookLifeCycleUnit logbookLFC) voidwriteCodeListVersions(int tenant) voidwriteComment(String comment) voidvoidwriteFooter(ExportType exportType, ExportRequestParameters parameters) writeGOT(com.fasterxml.jackson.databind.JsonNode og, String linkedAU, Stream<LogbookLifeCycleObjectGroup> logbookLifeCycleObjectGroupStream, FolderResolver folderResolver, FilenameResolver filenameResolver) voidwriteManagementMetadata(String originatingAgency, String submissionAgencyIdentifier) voidwriteManagementMetadata(String acquisitionInformation, String legalStatus, String originatingAgency, String submissionAgencyIdentifier, String archivalProfile) voidwriteMessageIdentifier(String operationId)
-
Constructor Details
-
ManifestBuilder
public ManifestBuilder(OutputStream outputStream, SupportedSedaVersions supportedSedaVersion) throws XMLStreamException, jakarta.xml.bind.JAXBException - Parameters:
outputStream-supportedSedaVersion-- Throws:
XMLStreamExceptionjakarta.xml.bind.JAXBException
-
-
Method Details
-
startDocument
public void startDocument(String operationId, ExportType exportType, ExportRequestParameters exportRequestParameters) throws XMLStreamException, jakarta.xml.bind.JAXBException - Throws:
XMLStreamExceptionjakarta.xml.bind.JAXBException
-
writeGOT
public Map<String,com.fasterxml.jackson.databind.JsonNode> writeGOT(com.fasterxml.jackson.databind.JsonNode og, String linkedAU, Stream<LogbookLifeCycleObjectGroup> logbookLifeCycleObjectGroupStream, FolderResolver folderResolver, FilenameResolver filenameResolver) throws com.fasterxml.jackson.core.JsonProcessingException, jakarta.xml.bind.JAXBException - Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionjakarta.xml.bind.JAXBException
-
writeArchiveUnit
public void writeArchiveUnit(ArchiveUnitModel archiveUnitModel, com.google.common.collect.ListMultimap<String, String> multimap, Map<String, throws jakarta.xml.bind.JAXBException, DatatypeConfigurationException, ExportExceptionString> ogs) - Throws:
jakarta.xml.bind.JAXBExceptionDatatypeConfigurationExceptionExportException
-
writeArchiveUnitWithLFC
public void writeArchiveUnitWithLFC(ArchiveUnitModel archiveUnitModel, com.google.common.collect.ListMultimap<String, String> multimap, Map<String, throws DatatypeConfigurationException, jakarta.xml.bind.JAXBException, ExportExceptionString> ogs, @Nullable LogbookLifeCycleUnit logbookLFC) - Throws:
DatatypeConfigurationExceptionjakarta.xml.bind.JAXBExceptionExportException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
XMLStreamException
-
startDescriptiveMetadata
- Throws:
XMLStreamException
-
startDataObjectPackage
- Throws:
XMLStreamException
-
endDescriptiveMetadata
- Throws:
XMLStreamException
-
endDataObjectPackage
- Throws:
XMLStreamException
-
writeComment
- Throws:
XMLStreamException
-
writeDate
- Throws:
XMLStreamException
-
writeMessageIdentifier
- Throws:
XMLStreamException
-
writeArchivalAgreement
- Throws:
XMLStreamException
-
writeManagementMetadata
public void writeManagementMetadata(String acquisitionInformation, String legalStatus, String originatingAgency, String submissionAgencyIdentifier, String archivalProfile) throws jakarta.xml.bind.JAXBException, ExportException - Throws:
jakarta.xml.bind.JAXBExceptionExportException
-
writeManagementMetadata
public void writeManagementMetadata(String originatingAgency, String submissionAgencyIdentifier) throws jakarta.xml.bind.JAXBException, ExportException - Throws:
jakarta.xml.bind.JAXBExceptionExportException
-
writeCodeListVersions
public void writeCodeListVersions(int tenant) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-
closeManifest
- Throws:
XMLStreamException
-
validate
public void validate(ExportType exportType, ExportRequestParameters exportRequestParameters) throws ExportException - Throws:
ExportException
-