Package fr.gouv.vitam.common.mapping.dip
Class RuleMapper
java.lang.Object
fr.gouv.vitam.common.mapping.dip.RuleMapper
Map data base representation of rules to a jaxb representation =&tg; Map RuleCategoryModel to CommonRule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends CommonRule>
TfillCommonRule
(RuleCategoryModel ruleCategory, 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)
-
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
-