com.ace.moab.api.acl
Enum ACLModifier

java.lang.Object
  extended by java.lang.Enum<ACLModifier>
      extended by com.ace.moab.api.acl.ACLModifier
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ACLModifier>

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

This enum describes all the ACL modifiers that cause ACL's to behave in more advanced ways. This includes reversing the behavior of ACL matching, exclusively ORing, and other advanced matching flags.

Author:
Brady Kimball

Enum Constant Summary
CRED_LOCK
          All requestors that match the corresponding ACL value must be associated with the corresponding object.
DENY
          If the ACL value is met, the requestor is denied access regardless of any other satisfied ACL values.
HARD_POLICY
          The ACL value is only considered for hard policy scheduling after soft policy scheduling takes place.
REQUIRED
          The ACL value must be met in order for the requestor to have be considered for access.
XOR
          Any value that is not the ACL value is given access.
 
Method Summary
static ACLModifier parseMoabString(java.lang.String str)
          Parses a string expected from Moab into a corresponding ACLModifier value
 java.lang.String toMoabString()
          Returns the enum value represented as a String that would be returned by Moab.
 char toMoabSymbol()
          Returns the symbol used in configuring ACLs in Moab.
 java.lang.String toString()
           
static ACLModifier valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ACLModifier[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CRED_LOCK

public static final ACLModifier CRED_LOCK
All requestors that match the corresponding ACL value must be associated with the corresponding object.


HARD_POLICY

public static final ACLModifier HARD_POLICY
The ACL value is only considered for hard policy scheduling after soft policy scheduling takes place.


DENY

public static final ACLModifier DENY
If the ACL value is met, the requestor is denied access regardless of any other satisfied ACL values.


REQUIRED

public static final ACLModifier REQUIRED
The ACL value must be met in order for the requestor to have be considered for access.


XOR

public static final ACLModifier XOR
Any value that is not the ACL value is given access.

Method Detail

values

public static final ACLModifier[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ACLModifier c : ACLModifier.values())
        System.out.println(c);

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

valueOf

public static ACLModifier 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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ACLModifier>

toMoabString

public java.lang.String toMoabString()
Returns the enum value represented as a String that would be returned by Moab.

Returns:
the enum value represented as a String that would be returned by Moab.

toMoabSymbol

public char toMoabSymbol()
Returns the symbol used in configuring ACLs in Moab.

Returns:
the symbol used in configuring ACLs in Moab.

parseMoabString

public static ACLModifier parseMoabString(java.lang.String str)
                                   throws java.text.ParseException
Parses a string expected from Moab into a corresponding ACLModifier value

Parameters:
str - the string to parse.
Returns:
the corresponding ACLModifier value.
Throws:
java.text.ParseException - thrown if the string does not match any ACLModifider enum value


Copyright © 2001-2009 Cluster Resources, Inc. All Rights Reserved.