net.user1.union.security
Enum SecurityRole
java.lang.Object
java.lang.Enum<SecurityRole>
net.user1.union.security.SecurityRole
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<SecurityRole>
public enum SecurityRole
- extends java.lang.Enum<SecurityRole>
Field Summary |
int |
bit
|
java.lang.String |
id
|
Method Summary |
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. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ALL
public static final SecurityRole ALL
SELF
public static final SecurityRole SELF
USER
public static final SecurityRole USER
MODERATOR
public static final SecurityRole MODERATOR
ROOM_OCCUPANT
public static final SecurityRole ROOM_OCCUPANT
ROOM_OBSERVER
public static final SecurityRole ROOM_OBSERVER
ROOM_OWNER
public static final SecurityRole ROOM_OWNER
id
public java.lang.String id
bit
public int bit
values
public static SecurityRole[] 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 (SecurityRole c : SecurityRole.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SecurityRole 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 name
java.lang.NullPointerException
- if the argument is null
getRole
public static SecurityRole getRole(java.lang.String id)
Copyright USER1 Subsystems Corporation - Tue Jan 28 2014, 05:05 PM -0500