Class 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 name
      static java.lang.String RULE
      Deprecated.
      rule field name
    • Constructor Summary

      Constructors 
      Constructor Description
      UnitInheritedRule()
      Deprecated.
      empty constructor for every unitNode except root
    • 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
    • Constructor Detail

      • UnitInheritedRule

        public UnitInheritedRule()
        Deprecated.
        empty constructor for every unitNode except root
    • 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 ObjectNode
        unitId - as String
        Returns:
        UnitInheritedRule created
        Throws:
        InvalidParseOperationException
      • isEmpty

        public boolean isEmpty()
        Deprecated.
        check inheritedRule set if empty
        Returns:
        boolean value