|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ArrayBuilderPermission> edu.jhu.tmaj.beans.data.ArrayBuilderPermission
public enum ArrayBuilderPermission
Represents the level of permission a user has for the ArrayBuilder Application.
Enum Constant Summary | |
---|---|
NONE
ArrayBuilder App may not be accessed. |
|
READ_ONLY
ArrayBuilder may be used to see, but not change ArrayBlocks. |
|
STANDARD
ArrayBuilder may be used to see and change ArrayBlocks. |
Method Summary | |
---|---|
int |
getDBValue()
|
static ArrayBuilderPermission |
getInstance(java.lang.Integer dbValue)
Get an Instance of this class. |
static java.lang.String[] |
getPermissionsArray()
|
boolean |
hasWritePermission()
Returns true if a user can design an ArrayBlock, as oppose to just view them. |
boolean |
isHigherAccess(ArrayBuilderPermission permission)
|
boolean |
mayAccessArrayBuilderApp()
Returns true if a user may get into the ArrayBuilder Application. |
static ArrayBuilderPermission |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ArrayBuilderPermission[] |
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 ArrayBuilderPermission NONE
public static final ArrayBuilderPermission READ_ONLY
public static final ArrayBuilderPermission STANDARD
Method Detail |
---|
public static ArrayBuilderPermission[] values()
for (ArrayBuilderPermission c : ArrayBuilderPermission.values()) System.out.println(c);
public static ArrayBuilderPermission 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 int getDBValue()
public static ArrayBuilderPermission getInstance(java.lang.Integer dbValue)
dbValue
- the database value recorded in the ArrayBuilderApp field in the Users tablepublic boolean mayAccessArrayBuilderApp()
public boolean hasWritePermission()
public static java.lang.String[] getPermissionsArray()
public boolean isHigherAccess(ArrayBuilderPermission permission)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |