Class RuleMapper


  • public class RuleMapper
    extends java.lang.Object
    Map data base representation of rules to a jaxb representation =&tg; Map RuleCategoryModel to CommonRule
    • Constructor Summary

      Constructors 
      Constructor Description
      RuleMapper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends CommonRule>
      T
      fillCommonRule​(RuleCategoryModel ruleCategory, java.util.function.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 Detail

      • RuleMapper

        public RuleMapper()
    • Method Detail

      • fillCommonRule

        public <T extends CommonRule> T fillCommonRule​(RuleCategoryModel ruleCategory,
                                                       java.util.function.Supplier<T> commonRuleSupplier)
                                                throws javax.xml.datatype.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:
        javax.xml.datatype.DatatypeConfigurationException
      • fillHoldRule

        public fr.gouv.culture.archivesdefrance.seda.v2.HoldRuleType fillHoldRule​(RuleCategoryModel ruleCategory)
                                                                           throws javax.xml.datatype.DatatypeConfigurationException
        Throws:
        javax.xml.datatype.DatatypeConfigurationException