Package fr.gouv.vitam.metadata.core
Class UnitInheritedRule
- java.lang.Object
-
- fr.gouv.vitam.metadata.core.UnitInheritedRule
-
public class UnitInheritedRule extends java.lang.Object
Deprecated.: Use the new api /unitsWithInheritedRules instead. To be removed in future releases.POJO for the result of Inherited Rule
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
INHERITED_RULE
Deprecated.inherited rule field namestatic java.lang.String
RULE
Deprecated.rule field name
-
Constructor Summary
Constructors Constructor Description UnitInheritedRule()
Deprecated.empty constructor for every unitNode except root
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
concatRule(UnitInheritedRule parentRule)
Deprecated.Concat UnitInheritedRule when unit have many parentUnitInheritedRule
createNewInheritedRule(com.fasterxml.jackson.databind.node.ObjectNode unitManagement, java.lang.String unitId)
Deprecated.Herite rule from parent with unit managementjava.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,InheritedRuleModel>>>
getInheritedRule()
Deprecated.boolean
isEmpty()
Deprecated.check inheritedRule set if emptyUnitInheritedRule
setInheritedRule(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,InheritedRuleModel>>> rules)
Deprecated.
-
-
-
Field Detail
-
RULE
public static final java.lang.String RULE
Deprecated.rule field name- See Also:
- Constant Field Values
-
INHERITED_RULE
public static final java.lang.String INHERITED_RULE
Deprecated.inherited rule field name- See Also:
- Constant Field Values
-
-
Method Detail
-
getInheritedRule
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,InheritedRuleModel>>> getInheritedRule()
Deprecated.- Returns:
- a map of category / ruleId / unitOrigin / Rules-with-paths (inheritedRules)
-
setInheritedRule
public UnitInheritedRule setInheritedRule(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,InheritedRuleModel>>> rules)
Deprecated.- Parameters:
rules
- as a map- Returns:
- UnitInheritedRule in which inheritedRule setted
-
concatRule
public void concatRule(UnitInheritedRule parentRule)
Deprecated.Concat UnitInheritedRule when unit have many parent- Parameters:
parentRule
- of type UnitInheritedRule
-
createNewInheritedRule
public UnitInheritedRule createNewInheritedRule(com.fasterxml.jackson.databind.node.ObjectNode unitManagement, java.lang.String unitId) throws InvalidParseOperationException
Deprecated.Herite rule from parent with unit management- Parameters:
unitManagement
- as ObjectNodeunitId
- as String- Returns:
- UnitInheritedRule created
- Throws:
InvalidParseOperationException
-
isEmpty
public boolean isEmpty()
Deprecated.check inheritedRule set if empty- Returns:
- boolean value
-
-