Enum JCRProjectMember.MemberType
- java.lang.Object
-
- java.lang.Enum<JCRProjectMember.MemberType>
-
- org.ametys.plugins.workspaces.members.JCRProjectMember.MemberType
-
- All Implemented Interfaces:
Serializable
,Comparable<JCRProjectMember.MemberType>
- Enclosing class:
- JCRProjectMember
public static enum JCRProjectMember.MemberType extends Enum<JCRProjectMember.MemberType>
The type of the member
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MemberType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JCRProjectMember.MemberType
valueOf(String name)
Returns the enum constant of this type with the specified name.static JCRProjectMember.MemberType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USER
public static final JCRProjectMember.MemberType USER
The member is a user
-
GROUP
public static final JCRProjectMember.MemberType GROUP
The member is a group
-
-
Constructor Detail
-
MemberType
private MemberType()
-
-
Method Detail
-
values
public static JCRProjectMember.MemberType[] 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 (JCRProjectMember.MemberType c : JCRProjectMember.MemberType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JCRProjectMember.MemberType 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 nameNullPointerException
- if the argument is null
-
-