edu.internet2.middleware.grouper.privs
Enum PrivilegeType

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

public enum PrivilegeType
extends Enum<PrivilegeType>

enum of privilege types


Enum Constant Summary
ACCESS
          access privileges are for groups
NAMING
          naming privileges are for stems
 
Method Summary
 String getPrivilegeName()
          privilege name
abstract  Privilege retrievePrivilege(String name)
          retrieve a privilege with this name.
static PrivilegeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PrivilegeType valueOfIgnoreCase(String string)
          do a case-insensitive matching
static PrivilegeType[] 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

ACCESS

public static final PrivilegeType ACCESS
access privileges are for groups


NAMING

public static final PrivilegeType NAMING
naming privileges are for stems

Method Detail

values

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

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

valueOf

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

getPrivilegeName

public String getPrivilegeName()
privilege name

Returns:
privilege name

retrievePrivilege

public abstract Privilege retrievePrivilege(String name)
retrieve a privilege with this name. should return null if blank

Parameters:
name -
Returns:
the privilege

valueOfIgnoreCase

public static PrivilegeType valueOfIgnoreCase(String string)
do a case-insensitive matching

Parameters:
string -
Returns:
the enum or null or exception if not found