Package pro.taskana.task.rest
Enum TaskController.TaskQuerySortBy
- java.lang.Object
-
- java.lang.Enum<TaskController.TaskQuerySortBy>
-
- pro.taskana.task.rest.TaskController.TaskQuerySortBy
-
- All Implemented Interfaces:
Serializable,Comparable<TaskController.TaskQuerySortBy>,QuerySortBy<pro.taskana.task.api.TaskQuery>
- Enclosing class:
- TaskController
public static enum TaskController.TaskQuerySortBy extends Enum<TaskController.TaskQuerySortBy> implements QuerySortBy<pro.taskana.task.api.TaskQuery>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplySortByForQuery(pro.taskana.task.api.TaskQuery query, pro.taskana.common.api.BaseQuery.SortDirection sortDirection)static TaskController.TaskQuerySortByvalueOf(String name)Returns the enum constant of this type with the specified name.static TaskController.TaskQuerySortBy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLASSIFICATION_KEY
public static final TaskController.TaskQuerySortBy CLASSIFICATION_KEY
-
POR_TYPE
public static final TaskController.TaskQuerySortBy POR_TYPE
-
POR_VALUE
public static final TaskController.TaskQuerySortBy POR_VALUE
-
STATE
public static final TaskController.TaskQuerySortBy STATE
-
NAME
public static final TaskController.TaskQuerySortBy NAME
-
DUE
public static final TaskController.TaskQuerySortBy DUE
-
PLANNED
public static final TaskController.TaskQuerySortBy PLANNED
-
PRIORITY
public static final TaskController.TaskQuerySortBy PRIORITY
-
-
Method Detail
-
values
public static TaskController.TaskQuerySortBy[] 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 (TaskController.TaskQuerySortBy c : TaskController.TaskQuerySortBy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskController.TaskQuerySortBy 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
-
applySortByForQuery
public void applySortByForQuery(pro.taskana.task.api.TaskQuery query, pro.taskana.common.api.BaseQuery.SortDirection sortDirection)- Specified by:
applySortByForQueryin interfaceQuerySortBy<pro.taskana.task.api.TaskQuery>
-
-