com.yosokumo.core
Enum Role.Privilege

java.lang.Object
  extended by java.lang.Enum<Role.Privilege>
      extended by com.yosokumo.core.Role.Privilege
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Role.Privilege>
Enclosing class:
Role

public static enum Role.Privilege
extends java.lang.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

GET_STUDY

public static final Role.Privilege GET_STUDY

DELETE_STUDY

public static final Role.Privilege DELETE_STUDY

GET_ROSTER

public static final Role.Privilege GET_ROSTER

POST_ROSTER

public static final Role.Privilege POST_ROSTER

GET_ROLE

public static final Role.Privilege GET_ROLE

PUT_ROLE

public static final Role.Privilege PUT_ROLE

DELETE_ROLE

public static final Role.Privilege DELETE_ROLE

GET_PANEL

public static final Role.Privilege GET_PANEL

GET_CONTROL

public static final Role.Privilege GET_CONTROL

PUT_CONTROL

public static final Role.Privilege PUT_CONTROL

POST_TABLE

public static final Role.Privilege POST_TABLE

GET_MODEL

public static final Role.Privilege GET_MODEL

POST_MODEL

public static final Role.Privilege POST_MODEL

GET_CATALOG

public static final Role.Privilege GET_CATALOG

POST_CATALOG

public static final Role.Privilege POST_CATALOG
Field Detail

value

private final int value
Method Detail

values

public static Role.Privilege[] 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 (Role.Privilege c : Role.Privilege.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Role.Privilege 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

numberOfPrivileges

public static int numberOfPrivileges()
Return the number of privileges.

Returns:
the number of privileges available.

getNumber

public final int getNumber()
Return the Privilege enum value as an integer.

Returns:
the enum value of this Privilege as an integer.

valueOf

public static Role.Privilege valueOf(int value)
Convert an integer to a Privilege enum value.

Parameters:
value - the integer to convert.
Returns:
the Privilege enum value corresponding to the value parameter, or null if the parameter does not correspond to any enum value.