Enum GrantAndDenial
- java.lang.Object
-
- java.lang.Enum<GrantAndDenial>
-
- org.apache.directory.api.ldap.aci.GrantAndDenial
-
- All Implemented Interfaces:
Serializable
,Comparable<GrantAndDenial>
public enum GrantAndDenial extends Enum<GrantAndDenial>
An enumeration that represents grants or denials ofMicroOperation
s.- Author:
- Apache Directory Project
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
Gets the code number of this grant or denial.MicroOperation
getMicroOperation()
Gets theMicroOperation
related with this grant or denial.String
getName()
Gets the name of this grant or denial.boolean
isGrant()
Returns true if and only if this is grant.String
toString()
static GrantAndDenial
valueOf(String name)
Returns the enum constant of this type with the specified name.static GrantAndDenial[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GRANT_ADD
public static final GrantAndDenial GRANT_ADD
Grant forMicroOperation.ADD
-
DENY_ADD
public static final GrantAndDenial DENY_ADD
Denial forMicroOperation.ADD
-
GRANT_DISCLOSE_ON_ERROR
public static final GrantAndDenial GRANT_DISCLOSE_ON_ERROR
Grant forMicroOperation.DISCLOSE_ON_ERROR
-
DENY_DISCLOSE_ON_ERROR
public static final GrantAndDenial DENY_DISCLOSE_ON_ERROR
Denial forMicroOperation.DISCLOSE_ON_ERROR
-
GRANT_READ
public static final GrantAndDenial GRANT_READ
Grant forMicroOperation.READ
-
DENY_READ
public static final GrantAndDenial DENY_READ
Denial forMicroOperation.READ
-
GRANT_REMOVE
public static final GrantAndDenial GRANT_REMOVE
Grant forMicroOperation.REMOVE
-
DENY_REMOVE
public static final GrantAndDenial DENY_REMOVE
Denial forMicroOperation.REMOVE
-
GRANT_BROWSE
public static final GrantAndDenial GRANT_BROWSE
Grant forMicroOperation.BROWSE
-
DENY_BROWSE
public static final GrantAndDenial DENY_BROWSE
Denial forMicroOperation.BROWSE
-
GRANT_EXPORT
public static final GrantAndDenial GRANT_EXPORT
Grant forMicroOperation.EXPORT
-
DENY_EXPORT
public static final GrantAndDenial DENY_EXPORT
Denial forMicroOperation.EXPORT
-
GRANT_IMPORT
public static final GrantAndDenial GRANT_IMPORT
Grant forMicroOperation.IMPORT
-
DENY_IMPORT
public static final GrantAndDenial DENY_IMPORT
Denial forMicroOperation.IMPORT
-
GRANT_MODIFY
public static final GrantAndDenial GRANT_MODIFY
Grant forMicroOperation.MODIFY
-
DENY_MODIFY
public static final GrantAndDenial DENY_MODIFY
Denial forMicroOperation.MODIFY
-
GRANT_RENAME
public static final GrantAndDenial GRANT_RENAME
Grant forMicroOperation.RENAME
-
DENY_RENAME
public static final GrantAndDenial DENY_RENAME
Denial forMicroOperation.RENAME
-
GRANT_RETURN_DN
public static final GrantAndDenial GRANT_RETURN_DN
Grant forMicroOperation.RETURN_DN
-
DENY_RETURN_DN
public static final GrantAndDenial DENY_RETURN_DN
Denial forMicroOperation.RETURN_DN
-
GRANT_COMPARE
public static final GrantAndDenial GRANT_COMPARE
Grant forMicroOperation.COMPARE
-
DENY_COMPARE
public static final GrantAndDenial DENY_COMPARE
Deny forMicroOperation.COMPARE
-
GRANT_FILTER_MATCH
public static final GrantAndDenial GRANT_FILTER_MATCH
Grant forMicroOperation.FILTER_MATCH
-
DENY_FILTER_MATCH
public static final GrantAndDenial DENY_FILTER_MATCH
Denial forMicroOperation.FILTER_MATCH
-
GRANT_INVOKE
public static final GrantAndDenial GRANT_INVOKE
Grant forMicroOperation.INVOKE
-
DENY_INVOKE
public static final GrantAndDenial DENY_INVOKE
Denial forMicroOperation.INVOKE
-
-
Method Detail
-
values
public static GrantAndDenial[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GrantAndDenial c : GrantAndDenial.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GrantAndDenial valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMicroOperation
public MicroOperation getMicroOperation()
Gets theMicroOperation
related with this grant or denial.- Returns:
- the micro operation
-
getCode
public int getCode()
Gets the code number of this grant or denial.- Returns:
- the code number
-
isGrant
public boolean isGrant()
Returns true if and only if this is grant.- Returns:
- true if and only if this is grant
-
toString
public String toString()
- Overrides:
toString
in classEnum<GrantAndDenial>
-
-