|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<SpecimensAppPermission> edu.jhu.tmaj.beans.data.SpecimensAppPermission
public enum SpecimensAppPermission
The permission level a user has for the Specimens Application.
Enum Constant Summary | |
---|---|
ALL
|
|
NONE
|
|
OPEN
|
|
READ_ONLY
|
|
STANDARD
|
Method Summary | |
---|---|
int |
getDBValue()
|
static SpecimensAppPermission |
getInstance(java.lang.Integer dbValue)
|
static java.lang.String[] |
getPermissionsArray()
|
boolean |
hasAllAccess()
Returns true if the user should see every record in the database, regardless of which specimens they have been assigned to. |
boolean |
hasAtLeastOpenAccess()
Returns true if a user will receive automatic access to 'requested' Specimens. |
boolean |
hasAtLeastReadAccess()
|
boolean |
hasWritePermission()
Returns false if the user may only view records, and not change them. |
boolean |
isHigherAccess(SpecimensAppPermission permission)
|
boolean |
mayAccessSpecimensApplication()
Returns true if a user may get into the Specimens App |
static SpecimensAppPermission |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SpecimensAppPermission[] |
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 SpecimensAppPermission NONE
public static final SpecimensAppPermission READ_ONLY
public static final SpecimensAppPermission STANDARD
public static final SpecimensAppPermission OPEN
public static final SpecimensAppPermission ALL
Method Detail |
---|
public static SpecimensAppPermission[] values()
for (SpecimensAppPermission c : SpecimensAppPermission.values()) System.out.println(c);
public static SpecimensAppPermission 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 SpecimensAppPermission getInstance(java.lang.Integer dbValue)
public int getDBValue()
public boolean hasAllAccess()
public boolean hasAtLeastOpenAccess()
public boolean hasAtLeastReadAccess()
public boolean mayAccessSpecimensApplication()
public boolean hasWritePermission()
public static java.lang.String[] getPermissionsArray()
public boolean isHigherAccess(SpecimensAppPermission permission)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |