edu.internet2.middleware.grouper.permissions
Enum PermissionAllowed

java.lang.Object
  extended by java.lang.Enum<PermissionAllowed>
      extended by edu.internet2.middleware.grouper.permissions.PermissionAllowed
All Implemented Interfaces:
Serializable, Comparable<PermissionAllowed>

public enum PermissionAllowed
extends Enum<PermissionAllowed>

if allowed or disallowed


Enum Constant Summary
ALLOWED
          normal assignment if allowed
DISALLOWED
          disallow underneath an inherited allow to limit the scope of the allow
 
Method Summary
static PermissionAllowed fromDisallowedBoolean(boolean disallowed)
          convert from disallowed boolean to the enum
abstract  boolean isDisallowed()
          if disallowed
static PermissionAllowed valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PermissionAllowed[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALLOWED

public static final PermissionAllowed ALLOWED
normal assignment if allowed


DISALLOWED

public static final PermissionAllowed DISALLOWED
disallow underneath an inherited allow to limit the scope of the allow

Method Detail

values

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

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

valueOf

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

isDisallowed

public abstract boolean isDisallowed()
if disallowed

Returns:
true or false

fromDisallowedBoolean

public static PermissionAllowed fromDisallowedBoolean(boolean disallowed)
convert from disallowed boolean to the enum

Parameters:
disallowed -
Returns:
the permission allowed