Package com.axemble.vdp.security.helper
Class RightValue
java.lang.Object
com.axemble.vdp.security.helper.RightValue
- All Implemented Interfaces:
RightConst
,Serializable
,Comparable
- Direct Known Subclasses:
RightDef
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRightValue
(int type, int value) RightValue
(int type, RightConst extendValue) -
Method Summary
Modifier and TypeMethodDescriptionboolean
clearFlag
(int value) int
compareTo
(RightValue other) int
copy()
boolean
decreaseLevel
(int value) boolean
equals
(RightConst other) boolean
static RightDef
getRightDefinition
(int securableObjectType, RightConst rightValue) static RightDef[]
getRightDefinitions
(int securableObjectType, RightConst rightValue) int
getType()
int
getValue()
int
hashCode()
boolean
increaseLevel
(int value) boolean
isFlag
(RightConst other) boolean
isGOET
(RightConst other) boolean
isLOET
(RightConst other) boolean
boolean
boolean
setFlag
(int value) boolean
setValue
(int value)
-
Field Details
-
type
protected final int type -
value
protected int value
-
-
Constructor Details
-
RightValue
public RightValue(int type, int value) -
RightValue
-
-
Method Details
-
getValue
public int getValue()- Specified by:
getValue
in interfaceRightConst
-
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 interfaceRightConst
-
hashCode
public int hashCode() -
compareTo
-
compareTo
- Specified by:
compareTo
in interfaceComparable
-
equals
- Specified by:
equals
in interfaceRightConst
- Overrides:
equals
in classObject
-
equals
- Specified by:
equals
in interfaceRightConst
-
isFlag
- Specified by:
isFlag
in interfaceRightConst
-
isGOET
- Specified by:
isGOET
in interfaceRightConst
- Returns:
- is greater or equal to
-
isLOET
- Specified by:
isLOET
in interfaceRightConst
- Returns:
- is lower or equal to
-
copy
- Specified by:
copy
in interfaceRightConst
-
isModeLevel
public boolean isModeLevel()- Specified by:
isModeLevel
in interfaceRightConst
-
isModeFlag
public boolean isModeFlag()- Specified by:
isModeFlag
in interfaceRightConst
-
getRightDefinition
-
getRightDefinitions
-