Package fr.gouv.vitam.worker.core.mapping

# Class ArchiveUnitMapper

java.lang.Object
fr.gouv.vitam.worker.core.mapping.ArchiveUnitMapper

public class ArchiveUnitMapper extends Object
map archive unit to model

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ArchiveUnitMapper(DescriptiveMetadataMapper descriptiveMetadataMapper, RuleMapper ruleMapper)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ArchiveUnitRoot`
  `map(fr.gouv.culture.archivesdefrance.seda.v2.ArchiveUnitType archiveUnitType, String id, String groupId, String operationId, String unitType, String sedaVersion)`
  mapping
  `DataObjectReference`
  `mapAndValidateDataObjectReference(fr.gouv.culture.archivesdefrance.seda.v2.ArchiveUnitType archiveUnitType)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ArchiveUnitMapper

    public ArchiveUnitMapper(DescriptiveMetadataMapper descriptiveMetadataMapper, RuleMapper ruleMapper)

- ## Method Details

  - ### map

    public ArchiveUnitRoot map(fr.gouv.culture.archivesdefrance.seda.v2.ArchiveUnitType archiveUnitType, String id, String groupId, String operationId, String unitType, String sedaVersion) throws ProcessingMalformedDataException, ProcessingObjectReferenceException
    mapping
    Parameters:
      `archiveUnitType` -
      `id` -
      `groupId` -
      `operationId` -
      `unitType` -
      `sedaVersion` -
    Returns:
      ArchiveUnitRoot
    Throws:
      `ProcessingMalformedDataException`
      `ProcessingObjectReferenceException`

  - ### mapAndValidateDataObjectReference

    public DataObjectReference mapAndValidateDataObjectReference(fr.gouv.culture.archivesdefrance.seda.v2.ArchiveUnitType archiveUnitType) throws ProcessingObjectReferenceException
    Throws:
      `ProcessingObjectReferenceException`