Package fr.gouv.vitam.common.mapping.dip
Class RuleMapper
- java.lang.Object
-
- fr.gouv.vitam.common.mapping.dip.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>
TfillCommonRule(RuleCategoryModel ruleCategory, java.util.function.Supplier<T> commonRuleSupplier)
This generic method is used to map data base model of rule to jaxbfr.gouv.culture.archivesdefrance.seda.v2.HoldRuleType
fillHoldRule(RuleCategoryModel ruleCategory)
-
-
-
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
-
-