Enum Task.TaskStatus
- java.lang.Object
-
- java.lang.Enum<Task.TaskStatus>
-
- org.ametys.plugins.explorer.tasks.Task.TaskStatus
-
- All Implemented Interfaces:
Serializable,Comparable<Task.TaskStatus>
- Enclosing interface:
- Task
public static enum Task.TaskStatus extends Enum<Task.TaskStatus>
Status of a task
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSIGNEDTask assignedENDEDTask endedIN_PROGRESSTask in progressOPENTask currently opened
-
Field Summary
Fields Modifier and Type Field Description private I18nizableText_labelprivate String_value
-
Constructor Summary
Constructors Modifier Constructor Description privateTaskStatus(String value, I18nizableText label)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Task.TaskStatuscreatesFromString(String status)Converts a string to a TaskStatusI18nizableTextgetLabel()label getterStringtoString()static Task.TaskStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static Task.TaskStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPEN
public static final Task.TaskStatus OPEN
Task currently opened
-
ASSIGNED
public static final Task.TaskStatus ASSIGNED
Task assigned
-
IN_PROGRESS
public static final Task.TaskStatus IN_PROGRESS
Task in progress
-
ENDED
public static final Task.TaskStatus ENDED
Task ended
-
-
Field Detail
-
_label
private I18nizableText _label
-
-
Constructor Detail
-
TaskStatus
private TaskStatus(String value, I18nizableText label)
-
-
Method Detail
-
values
public static Task.TaskStatus[] 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 (Task.TaskStatus c : Task.TaskStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Task.TaskStatus valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<Task.TaskStatus>
-
getLabel
public I18nizableText getLabel()
label getter- Returns:
- the task priority label
-
createsFromString
public static Task.TaskStatus createsFromString(String status)
Converts a string to a TaskStatus- Parameters:
status- The status to convert- Returns:
- The status corresponding to the string or null if unknown
-
-