edu.internet2.middleware.grouper.permissions
Enum PermissionEntry.PermissionType

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

public static enum PermissionEntry.PermissionType
extends Enum<PermissionEntry.PermissionType>

type of permission, either assigned to role, or assigned to role and user combined


Enum Constant Summary
role
          permission assigned to role
role_subject
          permission assigned to role and user combined
 
Method Summary
abstract  AttributeAssignType convertToAttributeAssignType()
          convert to attribute assign type
 String getName()
          name for javabean
static PermissionEntry.PermissionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PermissionEntry.PermissionType valueOfIgnoreCase(String theString, boolean exceptionOnNull)
          do a case-insensitive matching
static PermissionEntry.PermissionType[] 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

role

public static final PermissionEntry.PermissionType role
permission assigned to role


role_subject

public static final PermissionEntry.PermissionType role_subject
permission assigned to role and user combined

Method Detail

values

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

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

valueOf

public static PermissionEntry.PermissionType 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

valueOfIgnoreCase

public static PermissionEntry.PermissionType valueOfIgnoreCase(String theString,
                                                               boolean exceptionOnNull)
do a case-insensitive matching

Parameters:
theString -
exceptionOnNull - will not allow null or blank entries
Returns:
the enum or null or exception if not found

getName

public String getName()
name for javabean

Returns:
the attribute assign type

convertToAttributeAssignType

public abstract AttributeAssignType convertToAttributeAssignType()
convert to attribute assign type

Returns:
type