public enum GroupRoles extends Enum<GroupRoles>
Enum Constant and Description |
---|
ADMIN |
EDITOR |
EXISTING_MEMBER |
MEMBER |
OWNER |
Modifier and Type | Method and Description |
---|---|
static List<GroupRoles> |
decode(String value) |
static String |
encode(List<GroupRoles> roles) |
static boolean |
hasPermissions(String role,
GroupRoles... roles) |
static GroupRoles |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GroupRoles[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GroupRoles EXISTING_MEMBER
public static final GroupRoles MEMBER
public static final GroupRoles OWNER
public static final GroupRoles ADMIN
public static final GroupRoles EDITOR
public static final String SEPARATOR
public static GroupRoles[] values()
for (GroupRoles c : GroupRoles.values()) System.out.println(c);
public static GroupRoles valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static String encode(List<GroupRoles> roles)
public static List<GroupRoles> decode(String value)
public static boolean hasPermissions(@Nullable String role, GroupRoles... roles)