org.opends.server.authorization.dseecompat
Enum EnumAccessType

java.lang.Object
  extended by java.lang.Enum<EnumAccessType>
      extended by org.opends.server.authorization.dseecompat.EnumAccessType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EnumAccessType>

public enum EnumAccessType
extends java.lang.Enum<EnumAccessType>

This class provides an enumeration of the two access types (allow, deny).


Enum Constant Summary
ALLOW
          Allow access type.
DENY
          Deny access type.
 
Method Summary
static EnumAccessType decode(java.lang.String type)
          Decodes an access type enumeration from a string passed into the method.
 boolean isAccessType(java.lang.String type)
          Checks if the access type is equal to the string representation passed in.
static EnumAccessType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EnumAccessType[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALLOW

public static final EnumAccessType ALLOW
Allow access type.


DENY

public static final EnumAccessType DENY
Deny access type.

Method Detail

values

public static EnumAccessType[] 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 (EnumAccessType c : EnumAccessType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EnumAccessType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isAccessType

public boolean isAccessType(java.lang.String type)
Checks if the access type is equal to the string representation passed in.

Parameters:
type - The string representation of the access type.
Returns:
True if the access types are equal.

decode

public static EnumAccessType decode(java.lang.String type)
Decodes an access type enumeration from a string passed into the method.

Parameters:
type - The string representation of the access type.
Returns:
Return an EnumAccessType matching the string representation, or null if the string is not valid.