edu.internet2.middleware.grouper.privs
Enum PrivilegeAssignType

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

public enum PrivilegeAssignType
extends Enum<PrivilegeAssignType>

how this subject has this privilege


Enum Constant Summary
EFFECTIVE
          effectively assigned
IMMEDIATE
          immediately assigned
IMMEDIATE_AND_EFFECTIVE
          has immediate and effective memberships
 
Method Summary
static PrivilegeAssignType convert(PrivilegeAssignType privilegeAssignType, PrivilegeAssignType anotherAssignType)
          convert a privilege to a type
static PrivilegeAssignType convertMembership(Membership membership)
          convert a privilege to a type
static PrivilegeAssignType convertMembership(PrivilegeAssignType privilegeAssignType, Membership membership)
          convert a privilege to a type
 String getName()
          name as javabean property
 boolean isAllowed()
          if allowed
abstract  boolean isImmediate()
          if immediate
static PrivilegeAssignType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PrivilegeAssignType[] 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

IMMEDIATE

public static final PrivilegeAssignType IMMEDIATE
immediately assigned


EFFECTIVE

public static final PrivilegeAssignType EFFECTIVE
effectively assigned


IMMEDIATE_AND_EFFECTIVE

public static final PrivilegeAssignType IMMEDIATE_AND_EFFECTIVE
has immediate and effective memberships

Method Detail

values

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

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

valueOf

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

isImmediate

public abstract boolean isImmediate()
if immediate

Returns:
true/false

isAllowed

public boolean isAllowed()
if allowed

Returns:
true/false

getName

public String getName()
name as javabean property

Returns:
name

convertMembership

public static PrivilegeAssignType convertMembership(PrivilegeAssignType privilegeAssignType,
                                                    Membership membership)
convert a privilege to a type

Parameters:
privilegeAssignType -
membership -
Returns:
the type

convert

public static PrivilegeAssignType convert(PrivilegeAssignType privilegeAssignType,
                                          PrivilegeAssignType anotherAssignType)
convert a privilege to a type

Parameters:
privilegeAssignType -
anotherAssignType -
Returns:
the type

convertMembership

public static PrivilegeAssignType convertMembership(Membership membership)
convert a privilege to a type

Parameters:
membership -
Returns:
the type