Class UnitSimplified


  • public class UnitSimplified
    extends java.lang.Object
    Deprecated.
    : Use the new api /unitsWithInheritedRules instead. To be removed in future releases.
    POJO of simplified of Unit
    • Constructor Summary

      Constructors 
      Constructor Description
      UnitSimplified​(com.fasterxml.jackson.databind.node.ObjectNode unitNode)
      Deprecated.
      COnstructor with ObjectNode
      UnitSimplified​(java.lang.String id, com.fasterxml.jackson.databind.node.ObjectNode mgt, java.util.List<java.lang.String> up)
      Deprecated.
      Constructor with id, management, parent direct
    • Constructor Detail

      • UnitSimplified

        public UnitSimplified​(com.fasterxml.jackson.databind.node.ObjectNode unitNode)
        Deprecated.
        COnstructor with ObjectNode
        Parameters:
        unitNode - for building UnitSimplified
      • UnitSimplified

        public UnitSimplified​(java.lang.String id,
                              com.fasterxml.jackson.databind.node.ObjectNode mgt,
                              java.util.List<java.lang.String> up)
        Deprecated.
        Constructor with id, management, parent direct
        Parameters:
        id - the id of UnitSimplified
        mgt - the management of UnitSimplified
        up - list of direct parent of UnitSimplified
    • Method Detail

      • getId

        public java.lang.String getId()
        Deprecated.
        Returns:
        id of Unit as String
      • setId

        public UnitSimplified setId​(java.lang.String id)
        Deprecated.
        Parameters:
        id - as String
        Returns:
        UnitSimplified where id is setted
      • getManagement

        public com.fasterxml.jackson.databind.node.ObjectNode getManagement()
        Deprecated.
        Returns:
        management data of Unit as ObjectNode
      • setManagement

        public UnitSimplified setManagement​(com.fasterxml.jackson.databind.node.ObjectNode management)
        Deprecated.
        Parameters:
        management - of type ObjectNode
        Returns:
        UnitSimplified where management is setted
      • getDirectParent

        public java.util.List<java.lang.String> getDirectParent()
        Deprecated.
        Returns:
        list of unit parent as a List of String
      • setDirectParent

        public UnitSimplified setDirectParent​(java.util.List<java.lang.String> directParent)
        Deprecated.
        Parameters:
        directParent - as a list of String
        Returns:
        UnitSimplified where directParent is setted
      • getUnitIdMap

        public static java.util.Map<java.lang.String,​UnitSimplified> getUnitIdMap​(java.lang.Iterable<com.fasterxml.jackson.databind.JsonNode> unitList)
        Deprecated.
        Parameters:
        unitList - list of units as ArrayNode
        Returns:
        a map of unitId and UnitSimplified