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

# Class RuleMapper

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

public class RuleMapper extends Object
Map data base representation of rules to a jaxb representation => Map RuleCategoryModel to CommonRule

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RuleMapper()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `RuleCategoryModel`
  `fillCommonRule(CommonRule rule)`
  This generic method is used to map data base model of rule to jaxb
  `RuleCategoryModel`
  `fillHoldRule(fr.gouv.culture.archivesdefrance.seda.v2.HoldRuleType rule)`

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

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

- ## Constructor Details

  - ### RuleMapper

    public RuleMapper()

- ## Method Details

  - ### fillCommonRule

    public RuleCategoryModel fillCommonRule(CommonRule rule)
    This generic method is used to map data base model of rule to jaxb
    Parameters:
      `rule` -
    Returns:
      rule category

  - ### fillHoldRule

    public RuleCategoryModel fillHoldRule(fr.gouv.culture.archivesdefrance.seda.v2.HoldRuleType rule)