Package pro.taskana.workbasket.rest
Enum WorkbasketController.WorkbasketQuerySortBy
- java.lang.Object
-
- java.lang.Enum<WorkbasketController.WorkbasketQuerySortBy>
-
- pro.taskana.workbasket.rest.WorkbasketController.WorkbasketQuerySortBy
-
- All Implemented Interfaces:
Serializable,Comparable<WorkbasketController.WorkbasketQuerySortBy>,QuerySortBy<pro.taskana.workbasket.api.WorkbasketQuery>
- Enclosing class:
- WorkbasketController
public static enum WorkbasketController.WorkbasketQuerySortBy extends Enum<WorkbasketController.WorkbasketQuerySortBy> implements QuerySortBy<pro.taskana.workbasket.api.WorkbasketQuery>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DESCRIPTIONKEYNAMEOWNERTYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplySortByForQuery(pro.taskana.workbasket.api.WorkbasketQuery query, pro.taskana.common.api.BaseQuery.SortDirection sortDirection)static WorkbasketController.WorkbasketQuerySortByvalueOf(String name)Returns the enum constant of this type with the specified name.static WorkbasketController.WorkbasketQuerySortBy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NAME
public static final WorkbasketController.WorkbasketQuerySortBy NAME
-
KEY
public static final WorkbasketController.WorkbasketQuerySortBy KEY
-
OWNER
public static final WorkbasketController.WorkbasketQuerySortBy OWNER
-
TYPE
public static final WorkbasketController.WorkbasketQuerySortBy TYPE
-
DESCRIPTION
public static final WorkbasketController.WorkbasketQuerySortBy DESCRIPTION
-
-
Method Detail
-
values
public static WorkbasketController.WorkbasketQuerySortBy[] 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 (WorkbasketController.WorkbasketQuerySortBy c : WorkbasketController.WorkbasketQuerySortBy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WorkbasketController.WorkbasketQuerySortBy 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.workbasket.api.WorkbasketQuery query, pro.taskana.common.api.BaseQuery.SortDirection sortDirection)- Specified by:
applySortByForQueryin interfaceQuerySortBy<pro.taskana.workbasket.api.WorkbasketQuery>
-
-