Enum Class Task.Accessibility
- All Implemented Interfaces:
Serializable,Comparable<Task.Accessibility>,Constable
- Enclosing class:
Task
Enumerates the access levels that control which callers are permitted to read or monitor a
Task.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOnly users with admin rights may access this task.Anyone may access this task.Anyone may access this tasks, but they are only visible within the session in which they were created.This task is only accessibly by requests containing a valid access token. -
Method Summary
Modifier and TypeMethodDescriptionstatic Task.AccessibilityReturns the enum constant of this class with the specified name.static Task.Accessibility[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PUBLIC
Anyone may access this task. -
SESSION
Anyone may access this tasks, but they are only visible within the session in which they were created. -
ADMIN
Only users with admin rights may access this task. -
TOKEN
This task is only accessibly by requests containing a valid access token.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-