Class SedaUtils
java.lang.Object
fr.gouv.vitam.worker.common.utils.SedaUtils
SedaUtils to read or split element from SEDA
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Check Seda Validation status values -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncheckSedaValidation
(ItemStatus itemStatus) The method is used to validate SEDA by VITAM SEDA XSDcheck if the version list of the manifest.xml in workspace is validcompareVersionList
(XMLEventReader eventReader) compare if the version list of manifest.xml is included in or equal to the version list of version.conflong
Compute the total size of objects listed in the manifest.xml filevoid
extractXmlNameSpaceAndSaveSedaParams
(HandlerIO handlerIO, int sedaIngestParamsRankOutput) getDataObjectInfo
(XMLEventReader evenReader) getMandatoryValues
(WorkerParameters params) get Mandatory values from sedamanifestVersionList
(XMLEventReader evenReader) void
setSedaIngestParams
(SedaIngestParams sedaIngestParams)
-
Field Details
-
NB_AU_EXISTING
nbAUExisting: number of the AU already existing- See Also:
-
INVALID_DATAOBJECT_VERSION
- See Also:
-
VALID_DATAOBJECT_VERSION
- See Also:
-
-
Constructor Details
-
SedaUtils
-
-
Method Details
-
getMandatoryValues
get Mandatory values from seda- Parameters:
params
- parameters of workspace server- Returns:
- message id
- Throws:
ProcessingException
- throw when can't read or extract message id from SEDA
-
extractXmlNameSpaceAndSaveSedaParams
public void extractXmlNameSpaceAndSaveSedaParams(HandlerIO handlerIO, int sedaIngestParamsRankOutput) throws ProcessingException - Throws:
ProcessingException
-
checkSedaValidation
The method is used to validate SEDA by VITAM SEDA XSD- Returns:
- a status representing the validation of the file
-
getAllDigitalObjectUriFromManifest
- Returns:
- ExtractUriResponse - Object ExtractUriResponse contains listURI, listMessages and value boolean(error).
- Throws:
ProcessingException
- - throw when error in execution.
-
checkSupportedDataObjectVersion
public Map<String,Map<String, checkSupportedDataObjectVersionString>> (WorkerParameters params) throws ProcessingException check if the version list of the manifest.xml in workspace is valid- Parameters:
params
- worker parameter- Returns:
- map containing unsupported version
- Throws:
ProcessingException
- throws when error occurs
-
getDataObjectInfo
- Parameters:
evenReader
- of seda- Returns:
- Seda Info object
- Throws:
ProcessingException
- if cannot get BinaryObject info
-
manifestVersionList
public Map<String,List<DataObjectInfo>> manifestVersionList(XMLEventReader evenReader) throws ProcessingException - Parameters:
evenReader
- XMLEventReader for the file manifest.xml- Returns:
- List of version for file manifest.xml
- Throws:
ProcessingException
- when error in execution
-
compareVersionList
public Map<String,Map<String, compareVersionListString>> (XMLEventReader eventReader) throws ProcessingException compare if the version list of manifest.xml is included in or equal to the version list of version.conf- Parameters:
eventReader
- xml event reader- Returns:
- map containing the error code and the unsupported version
- Throws:
ProcessingException
- when error in execution
-
computeTotalSizeOfObjectsInManifest
Compute the total size of objects listed in the manifest.xml file- Parameters:
params
- worker parameters- Returns:
- the computed size of all BinaryObjects
- Throws:
ProcessingException
- when error in getting binary object info
-
getSedaIngestParams
-
setSedaIngestParams
-