Package fr.gouv.vitam.common.mapping.dip

# Class RuleMapper

java.lang.Object
fr.gouv.vitam.common.mapping.dip.RuleMapper

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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RuleMapper()`

- ## Method Summary

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

  ### 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 <T extends CommonRule> T fillCommonRule(RuleCategoryModel ruleCategory, Supplier<T> commonRuleSupplier) throws DatatypeConfigurationException
    This generic method is used to map data base model of rule to jaxb
    Type Parameters:
      `T` -
    Parameters:
      `ruleCategory` -
      `commonRuleSupplier` -
    Returns:
      rule category
    Throws:
      `DatatypeConfigurationException`

  - ### fillHoldRule

    public fr.gouv.culture.archivesdefrance.seda.v2.HoldRuleType fillHoldRule(RuleCategoryModel ruleCategory) throws DatatypeConfigurationException
    Throws:
      `DatatypeConfigurationException`