|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Role.Privilege> com.yosokumo.core.Role.Privilege
public static enum Role.Privilege
Indicates an operation which a given user is or is not allowed to perform on a given study.
Enum Constant Summary | |
---|---|
DELETE_ROLE
|
|
DELETE_STUDY
|
|
GET_CATALOG
|
|
GET_CONTROL
|
|
GET_MODEL
|
|
GET_PANEL
|
|
GET_ROLE
|
|
GET_ROSTER
|
|
GET_STUDY
|
|
POST_CATALOG
|
|
POST_MODEL
|
|
POST_ROSTER
|
|
POST_TABLE
|
|
PUT_CONTROL
|
|
PUT_ROLE
|
Field Summary | |
---|---|
private int |
value
|
Method Summary | |
---|---|
int |
getNumber()
Return the Privilege enum value as an integer. |
static int |
numberOfPrivileges()
Return the number of privileges. |
static Role.Privilege |
valueOf(int value)
Convert an integer to a Privilege enum value. |
static Role.Privilege |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Role.Privilege[] |
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 |
Enum Constant Detail |
---|
public static final Role.Privilege GET_STUDY
public static final Role.Privilege DELETE_STUDY
public static final Role.Privilege GET_ROSTER
public static final Role.Privilege POST_ROSTER
public static final Role.Privilege GET_ROLE
public static final Role.Privilege PUT_ROLE
public static final Role.Privilege DELETE_ROLE
public static final Role.Privilege GET_PANEL
public static final Role.Privilege GET_CONTROL
public static final Role.Privilege PUT_CONTROL
public static final Role.Privilege POST_TABLE
public static final Role.Privilege GET_MODEL
public static final Role.Privilege POST_MODEL
public static final Role.Privilege GET_CATALOG
public static final Role.Privilege POST_CATALOG
Field Detail |
---|
private final int value
Method Detail |
---|
public static Role.Privilege[] values()
for (Role.Privilege c : Role.Privilege.values()) System.out.println(c);
public static Role.Privilege 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 name
java.lang.NullPointerException
- if the argument is nullpublic static int numberOfPrivileges()
public final int getNumber()
Privilege
enum value as an integer.
Privilege
as an integer.public static Role.Privilege valueOf(int value)
Privilege
enum value.
value
- the integer to convert.
Privilege
enum value corresponding to the value
parameter, or null if the parameter does not correspond
to any enum value.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |