edu.internet2.middleware.grouper.membership
Enum MembershipAssignType

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

public enum MembershipAssignType
extends Enum<MembershipAssignType>

how this subject has this membership


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


EFFECTIVE

public static final MembershipAssignType EFFECTIVE
effectively assigned


IMMEDIATE_AND_EFFECTIVE

public static final MembershipAssignType IMMEDIATE_AND_EFFECTIVE
has immediate and effective memberships

Method Detail

values

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

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

valueOf

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

isNonImmediate

public abstract boolean isNonImmediate()
if non immediate

Returns:
true/false

getName

public String getName()
name as javabean property

Returns:
name

convertMembership

public static MembershipAssignType convertMembership(MembershipAssignType existingAssignType,
                                                     Membership membership)
convert a privilege to a type

Parameters:
existingAssignType -
membership -
Returns:
the type

convert

public static MembershipAssignType convert(MembershipAssignType membershipAssignType,
                                           MembershipAssignType anotherAssignType)
convert a privilege to a type

Parameters:
membershipAssignType -
anotherAssignType -
Returns:
the type

convertMembership

public static MembershipAssignType convertMembership(Membership membership)
convert a membership to a type

Parameters:
membership -
Returns:
the type