Enum UserGroupJoin.UserGroupRole
- java.lang.Object
-
- java.lang.Enum<UserGroupJoin.UserGroupRole>
-
- ca.corefacility.bioinformatics.irida.model.user.group.UserGroupJoin.UserGroupRole
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UserGroupJoin.UserGroupRole>
- Enclosing class:
- UserGroupJoin
public static enum UserGroupJoin.UserGroupRole extends java.lang.Enum<UserGroupJoin.UserGroupRole>
The role of a user in the group
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GROUP_MEMBER
GROUP_OWNER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UserGroupJoin.UserGroupRole
fromString(java.lang.String code)
Get a role from the given stringstatic UserGroupJoin.UserGroupRole
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UserGroupJoin.UserGroupRole[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GROUP_OWNER
public static final UserGroupJoin.UserGroupRole GROUP_OWNER
-
GROUP_MEMBER
public static final UserGroupJoin.UserGroupRole GROUP_MEMBER
-
-
Method Detail
-
values
public static UserGroupJoin.UserGroupRole[] 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 (UserGroupJoin.UserGroupRole c : UserGroupJoin.UserGroupRole.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UserGroupJoin.UserGroupRole valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromString
public static UserGroupJoin.UserGroupRole fromString(java.lang.String code)
Get a role from the given string- Parameters:
code
- string representation of the role- Returns:
- the role
-
-