Enum Class EnumRight
- All Implemented Interfaces:
- Serializable,- Comparable<EnumRight>,- java.lang.constant.Constable
This class provides an enumeration of the ACI rights.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionEntry creation, as for an LDAP add operation.All permissions, except export, import, proxy.Attribute value comparison, as for an LDAP compare operation.Entry deletion, as for an LDAP delete operation.Entry export during a modify DN operation.Entry import during a modify DN operation.Access the ACI target using the rights of another user.Read entries and attributes, or use an LDAP control or extended operation.Search the ACI targets.Add or delete own DN from a group.Modify attributes on ACI target entries.
- 
Method SummaryModifier and TypeMethodDescriptionstatic EnumRightCreates an enumeration of the right name.getEnumRight(int rightsMask) Return the EnumRight corresponding to the provided rightsMask.static intReturns bit mask associated with the specified right.getRight()Returns the string representation of the right.static booleanhasRights(int rightsMask, int rights) Checks if the provided rights mask has the specified rights.booleanChecks if the enumeration is equal to the right name.static EnumRightReturns the enum constant of this class with the specified name.static EnumRight[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
READRead entries and attributes, or use an LDAP control or extended operation.- See Also:
- 
- Aci.ACI_READ
 
 
- 
WRITEModify attributes on ACI target entries.- See Also:
- 
- Aci.ACI_WRITE
 
 
- 
ADDEntry creation, as for an LDAP add operation.- See Also:
- 
- Aci.ACI_ADD
 
 
- 
DELETEEntry deletion, as for an LDAP delete operation.- See Also:
- 
- Aci.ACI_DELETE
 
 
- 
SEARCHSearch the ACI targets.Combine with read to read the search results. - See Also:
- 
- Aci.ACI_SEARCH
 
 
- 
COMPAREAttribute value comparison, as for an LDAP compare operation.- See Also:
- 
- Aci.ACI_COMPARE
 
 
- 
SELFWRITEAdd or delete own DN from a group.- See Also:
- 
- Aci.ACI_SELF
 
 
- 
PROXYAccess the ACI target using the rights of another user.- See Also:
- 
- Aci.ACI_PROXY
 
 
- 
IMPORTEntry import during a modify DN operation.Despite the name, this action is unrelated to LDIF import operations. - See Also:
- 
- Aci.ACI_IMPORT
 
 
- 
EXPORTEntry export during a modify DN operation.Despite the name, this action is unrelated to LDIF export operations. - See Also:
- 
- Aci.ACI_EXPORT
 
 
- 
ALLAll permissions, except export, import, proxy.- See Also:
- 
- Aci.ACI_ALL
 
 
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getRightReturns the string representation of the right.- Returns:
- the string representation of the right
 
- 
isRightChecks if the enumeration is equal to the right name.- Parameters:
- right- The name of the right to check.
- Returns:
- True if the right is equal to the enumeration's.
 
- 
decodeCreates an enumeration of the right name.- Parameters:
- right- The name of the right.
- Returns:
- An enumeration of the right or null if the name is invalid.
 
- 
getMaskReturns bit mask associated with the specified right.- Parameters:
- right- The right enumeration to return the mask for.
- Returns:
- The bit mask associated with the right.
 
- 
getEnumRightReturn the EnumRight corresponding to the provided rightsMask.- Parameters:
- rightsMask- the rights mask for which to return the corresponding EnumRight
- Returns:
- EnumRight corresponding to the provided rightsMask.
 
- 
hasRightspublic static boolean hasRights(int rightsMask, int rights) Checks if the provided rights mask has the specified rights.- Parameters:
- rightsMask- The rights mask to look into.
- rights- The rights to check for.
- Returns:
- true if the rights mask has the specified rights, false otherwise.
 
 
-