public enum SecurityRole extends java.lang.Enum<SecurityRole>
Enum Constant and Description |
---|
ALL |
MODERATOR |
ROOM_OBSERVER |
ROOM_OCCUPANT |
ROOM_OWNER |
SELF |
USER |
Modifier and Type | Method and Description |
---|---|
static SecurityRole |
getRole(java.lang.String id) |
static SecurityRole |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SecurityRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecurityRole ALL
public static final SecurityRole SELF
public static final SecurityRole USER
public static final SecurityRole MODERATOR
public static final SecurityRole ROOM_OCCUPANT
public static final SecurityRole ROOM_OBSERVER
public static final SecurityRole ROOM_OWNER
public static SecurityRole[] values()
for (SecurityRole c : SecurityRole.values()) System.out.println(c);
public static SecurityRole valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SecurityRole getRole(java.lang.String id)