Class RightValue

java.lang.Object
com.axemble.vdp.security.helper.RightValue
All Implemented Interfaces:
RightConst, Serializable, Comparable
Direct Known Subclasses:
RightDef

public class RightValue extends Object implements RightConst, Serializable
See Also:
  • Field Details

    • type

      protected final int type
    • value

      protected int value
  • Constructor Details

    • RightValue

      public RightValue(int type, int value)
    • RightValue

      public RightValue(int type, RightConst extendValue)
  • Method Details

    • getValue

      public int getValue()
      Specified by:
      getValue in interface RightConst
    • setValue

      public boolean setValue(int value)
    • setFlag

      public boolean setFlag(int value)
    • clearFlag

      public boolean clearFlag(int value)
    • increaseLevel

      public boolean increaseLevel(int value)
    • decreaseLevel

      public boolean decreaseLevel(int value)
    • getType

      public int getType()
      Specified by:
      getType in interface RightConst
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(RightValue other)
    • compareTo

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable
    • equals

      public boolean equals(Object other)
      Specified by:
      equals in interface RightConst
      Overrides:
      equals in class Object
    • equals

      public boolean equals(RightConst other)
      Specified by:
      equals in interface RightConst
    • isFlag

      public boolean isFlag(RightConst other)
      Specified by:
      isFlag in interface RightConst
    • isGOET

      public boolean isGOET(RightConst other)
      Specified by:
      isGOET in interface RightConst
      Returns:
      is greater or equal to
    • isLOET

      public boolean isLOET(RightConst other)
      Specified by:
      isLOET in interface RightConst
      Returns:
      is lower or equal to
    • copy

      public RightValue copy()
      Specified by:
      copy in interface RightConst
    • isModeLevel

      public boolean isModeLevel()
      Specified by:
      isModeLevel in interface RightConst
    • isModeFlag

      public boolean isModeFlag()
      Specified by:
      isModeFlag in interface RightConst
    • getRightDefinition

      public static RightDef getRightDefinition(int securableObjectType, RightConst rightValue)
    • getRightDefinitions

      public static RightDef[] getRightDefinitions(int securableObjectType, RightConst rightValue)