public enum EnumRight extends Enum<EnumRight>
Enum Constant and Description |
---|
ADD
This enumeration is returned when the result of the right is "add".
|
ALL
This enumeration is returned when the result of the right is "all".
|
COMPARE
This enumeration is returned when the result of the right is "compare".
|
DELETE
This enumeration is returned when the result of the right is "delete".
|
EXPORT
This enumeration is returned when the result of the right is "export".
|
IMPORT
This enumeration is returned when the result of the right is "import".
|
PROXY
This enumeration is returned when the result of the right is "proxy".
|
READ
This enumeration is returned when the result of the right is "read".
|
SEARCH
This enumeration is returned when the result of the right is "search".
|
SELFWRITE
This enumeration is returned when the result of the right is
"selfwrite".
|
WRITE
This enumeration is returned when the result of the right is "write".
|
Modifier and Type | Method and Description |
---|---|
static EnumRight |
decode(String right)
Creates an enumeration of the right name.
|
static Set<EnumRight> |
getEnumRight(int rightsMask)
Return the EnumRight corresponding to the provided rightsMask.
|
static int |
getMask(EnumRight right)
Returns bit mask associated with the specified right.
|
String |
getRight()
Returns the string representation of the right.
|
static boolean |
hasRights(int rightsMask,
int rights)
Checks if the provided rights mask has the specified rights.
|
boolean |
isRight(String right)
Checks if the enumeration is equal to the right name.
|
static EnumRight |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumRight[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumRight READ
Aci.ACI_READ
public static final EnumRight WRITE
Aci.ACI_WRITE
public static final EnumRight ADD
Aci.ACI_ADD
public static final EnumRight DELETE
Aci.ACI_DELETE
public static final EnumRight SEARCH
Aci.ACI_SEARCH
public static final EnumRight COMPARE
Aci.ACI_COMPARE
public static final EnumRight SELFWRITE
Aci.ACI_SELF
public static final EnumRight PROXY
Aci.ACI_PROXY
public static final EnumRight IMPORT
Aci.ACI_IMPORT
public static final EnumRight EXPORT
Aci.ACI_EXPORT
public static final EnumRight ALL
Aci.ACI_ALL
public static EnumRight[] values()
for (EnumRight c : EnumRight.values()) System.out.println(c);
public static EnumRight valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getRight()
public boolean isRight(String right)
right
- The name of the right to check.public static EnumRight decode(String right)
right
- The name of the right.public static int getMask(EnumRight right)
right
- The right enumeration to return the mask for.public static Set<EnumRight> getEnumRight(int rightsMask)
rightsMask
- the rights mask for which to return the corresponding EnumRightpublic static boolean hasRights(int rightsMask, int rights)
rightsMask
- The rights mask to look into.rights
- The rights to check for.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.