Package fr.gouv.vitam.metadata.core.rules

# Class ComputeInheritedRuleService

java.lang.Object
fr.gouv.vitam.metadata.core.rules.ComputeInheritedRuleService

public class ComputeInheritedRuleService extends Object
Unit inherited rules service

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ComputeInheritedRuleService()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Map<String,UnitInheritedRulesResponseModel>`
  `computeInheritedRules(Map<String,UnitRuleModel> unitRulesById)`
  Computes inherited rules given local unit rule definitions

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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