|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<AdminAppPermission> edu.jhu.tmaj.beans.data.AdminAppPermission
public enum AdminAppPermission
Represents the 2 types of administrators: Group Admin and Full-Admin. Group Admins only have permission over a subset of users, projects, arrayblocks, and specimens. (All protected resources in tmaj are derived from one of those 4 things.)
Enum Constant Summary | |
---|---|
FULL_ADMIN
|
|
GROUP_ADMIN
|
|
NONE
|
Method Summary | |
---|---|
int |
getDBValue()
Returns the integer that is stored in the database representing this permission. |
static AdminAppPermission |
getInstance(java.lang.Integer dbValue)
|
static java.lang.String[] |
getPermissionsArray()
|
boolean |
isFullAdmin()
Returns true if the user is a full ("true") admin. |
boolean |
isHigherAccess(AdminAppPermission permission)
|
boolean |
mayAccessAdminApp()
Returns true if the user can get into the administrator application. |
static AdminAppPermission |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AdminAppPermission[] |
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 AdminAppPermission NONE
public static final AdminAppPermission GROUP_ADMIN
public static final AdminAppPermission FULL_ADMIN
Method Detail |
---|
public static AdminAppPermission[] values()
for (AdminAppPermission c : AdminAppPermission.values()) System.out.println(c);
public static AdminAppPermission 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 AdminAppPermission getInstance(java.lang.Integer dbValue)
public boolean mayAccessAdminApp()
public boolean isFullAdmin()
public static java.lang.String[] getPermissionsArray()
public boolean isHigherAccess(AdminAppPermission permission)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |