Enum Class MembershipAssignType
java.lang.Object
java.lang.Enum<MembershipAssignType>
edu.internet2.middleware.grouper.membership.MembershipAssignType
- All Implemented Interfaces:
Serializable
,Comparable<MembershipAssignType>
,Constable
how this subject has this membership
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptioneffectively assignedimmediately assignedhas immediate and effective memberships -
Method Summary
Modifier and TypeMethodDescriptionstatic MembershipAssignType
convert
(MembershipAssignType membershipAssignType, MembershipAssignType anotherAssignType) convert a privilege to a typestatic MembershipAssignType
convertMembership
(Membership membership) convert a membership to a typestatic MembershipAssignType
convertMembership
(MembershipAssignType existingAssignType, Membership membership) convert a privilege to a typegetName()
name as javabean propertyabstract boolean
if immediateabstract boolean
if non immediatestatic MembershipAssignType
Returns the enum constant of this class with the specified name.static MembershipAssignType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IMMEDIATE
immediately assigned -
EFFECTIVE
effectively assigned -
IMMEDIATE_AND_EFFECTIVE
has immediate and effective memberships
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- 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
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
convert a membership to a type- Parameters:
membership
-- Returns:
- the type
-