org.apache.directory.api.ldap.aci
Enum GrantAndDenial

java.lang.Object
  extended by java.lang.Enum<GrantAndDenial>
      extended by 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 of MicroOperations.

Author:
Apache Directory Project

Enum Constant Summary
DENY_ADD
          Denial for MicroOperation.ADD
DENY_BROWSE
          Denial for MicroOperation.BROWSE
DENY_COMPARE
          Deny for MicroOperation.COMPARE
DENY_DISCLOSE_ON_ERROR
          Denial for MicroOperation.DISCLOSE_ON_ERROR
DENY_EXPORT
          Denial for MicroOperation.EXPORT
DENY_FILTER_MATCH
          Denial for MicroOperation.FILTER_MATCH
DENY_IMPORT
          Denial for MicroOperation.IMPORT
DENY_INVOKE
          Denial for MicroOperation.INVOKE
DENY_MODIFY
          Denial for MicroOperation.MODIFY
DENY_READ
          Denial for MicroOperation.READ
DENY_REMOVE
          Denial for MicroOperation.REMOVE
DENY_RENAME
          Denial for MicroOperation.RENAME
DENY_RETURN_DN
          Denial for MicroOperation.RETURN_DN
GRANT_ADD
          Grant for MicroOperation.ADD
GRANT_BROWSE
          Grant for MicroOperation.BROWSE
GRANT_COMPARE
          Grant for MicroOperation.COMPARE
GRANT_DISCLOSE_ON_ERROR
          Grant for MicroOperation.DISCLOSE_ON_ERROR
GRANT_EXPORT
          Grant for MicroOperation.EXPORT
GRANT_FILTER_MATCH
          Grant for MicroOperation.FILTER_MATCH
GRANT_IMPORT
          Grant for MicroOperation.IMPORT
GRANT_INVOKE
          Grant for MicroOperation.INVOKE
GRANT_MODIFY
          Grant for MicroOperation.MODIFY
GRANT_READ
          Grant for MicroOperation.READ
GRANT_REMOVE
          Grant for MicroOperation.REMOVE
GRANT_RENAME
          Grant for MicroOperation.RENAME
GRANT_RETURN_DN
          Grant for MicroOperation.RETURN_DN
 
Method Summary
 int getCode()
          Gets the code number of this grant or denial.
 MicroOperation getMicroOperation()
          Gets the MicroOperation 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GRANT_ADD

public static final GrantAndDenial GRANT_ADD
Grant for MicroOperation.ADD


DENY_ADD

public static final GrantAndDenial DENY_ADD
Denial for MicroOperation.ADD


GRANT_DISCLOSE_ON_ERROR

public static final GrantAndDenial GRANT_DISCLOSE_ON_ERROR
Grant for MicroOperation.DISCLOSE_ON_ERROR


DENY_DISCLOSE_ON_ERROR

public static final GrantAndDenial DENY_DISCLOSE_ON_ERROR
Denial for MicroOperation.DISCLOSE_ON_ERROR


GRANT_READ

public static final GrantAndDenial GRANT_READ
Grant for MicroOperation.READ


DENY_READ

public static final GrantAndDenial DENY_READ
Denial for MicroOperation.READ


GRANT_REMOVE

public static final GrantAndDenial GRANT_REMOVE
Grant for MicroOperation.REMOVE


DENY_REMOVE

public static final GrantAndDenial DENY_REMOVE
Denial for MicroOperation.REMOVE


GRANT_BROWSE

public static final GrantAndDenial GRANT_BROWSE
Grant for MicroOperation.BROWSE


DENY_BROWSE

public static final GrantAndDenial DENY_BROWSE
Denial for MicroOperation.BROWSE


GRANT_EXPORT

public static final GrantAndDenial GRANT_EXPORT
Grant for MicroOperation.EXPORT


DENY_EXPORT

public static final GrantAndDenial DENY_EXPORT
Denial for MicroOperation.EXPORT


GRANT_IMPORT

public static final GrantAndDenial GRANT_IMPORT
Grant for MicroOperation.IMPORT


DENY_IMPORT

public static final GrantAndDenial DENY_IMPORT
Denial for MicroOperation.IMPORT


GRANT_MODIFY

public static final GrantAndDenial GRANT_MODIFY
Grant for MicroOperation.MODIFY


DENY_MODIFY

public static final GrantAndDenial DENY_MODIFY
Denial for MicroOperation.MODIFY


GRANT_RENAME

public static final GrantAndDenial GRANT_RENAME
Grant for MicroOperation.RENAME


DENY_RENAME

public static final GrantAndDenial DENY_RENAME
Denial for MicroOperation.RENAME


GRANT_RETURN_DN

public static final GrantAndDenial GRANT_RETURN_DN
Grant for MicroOperation.RETURN_DN


DENY_RETURN_DN

public static final GrantAndDenial DENY_RETURN_DN
Denial for MicroOperation.RETURN_DN


GRANT_COMPARE

public static final GrantAndDenial GRANT_COMPARE
Grant for MicroOperation.COMPARE


DENY_COMPARE

public static final GrantAndDenial DENY_COMPARE
Deny for MicroOperation.COMPARE


GRANT_FILTER_MATCH

public static final GrantAndDenial GRANT_FILTER_MATCH
Grant for MicroOperation.FILTER_MATCH


DENY_FILTER_MATCH

public static final GrantAndDenial DENY_FILTER_MATCH
Denial for MicroOperation.FILTER_MATCH


GRANT_INVOKE

public static final GrantAndDenial GRANT_INVOKE
Grant for MicroOperation.INVOKE


DENY_INVOKE

public static final GrantAndDenial DENY_INVOKE
Denial for MicroOperation.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 name
NullPointerException - if the argument is null

getMicroOperation

public MicroOperation getMicroOperation()
Gets the MicroOperation 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

getName

public String getName()
Gets the name of this grant or denial.

Returns:
the name

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 class Enum<GrantAndDenial>


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.