Class ComputeInheritedRuleService
java.lang.Object
fr.gouv.vitam.metadata.core.rules.ComputeInheritedRuleService
Unit inherited rules service
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeInheritedRules
(Map<String, UnitRuleModel> unitRulesById) Computes inherited rules given local unit rule definitions
-
Constructor Details
-
ComputeInheritedRuleService
public ComputeInheritedRuleService()
-
-
Method Details
-
computeInheritedRules
public Map<String,UnitInheritedRulesResponseModel> computeInheritedRules(Map<String, UnitRuleModel> unitRulesById) Computes inherited rules given local unit rule definitions- Parameters:
unitRulesById
- Map of local unit rules by unit id (the unit and all it's parents must be included)- Returns:
- the inherited rules by unit ids
-