Package pro.taskana.task.rest
Class TaskController.TaskQuerySortParameter
java.lang.Object
pro.taskana.common.rest.QuerySortParameter<pro.taskana.task.api.TaskQuery,TaskController.TaskQuerySortBy>
pro.taskana.task.rest.TaskController.TaskQuerySortParameter
- All Implemented Interfaces:
QueryParameter<pro.taskana.task.api.TaskQuery,Void>
- Enclosing class:
- TaskController
public static class TaskController.TaskQuerySortParameter
extends QuerySortParameter<pro.taskana.task.api.TaskQuery,TaskController.TaskQuerySortBy>
-
Constructor Summary
ConstructorsConstructorDescriptionTaskQuerySortParameter(List<TaskController.TaskQuerySortBy> sortBy, List<pro.taskana.common.api.BaseQuery.SortDirection> order) -
Method Summary
Modifier and TypeMethodDescriptionSort the result by a given field.Methods inherited from class pro.taskana.common.rest.QuerySortParameter
apply, getOrder, verifyAmountOfSortByAndOrderByMatches, verifyNotOnlyOrderByExistsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pro.taskana.common.rest.QueryParameter
extractIntIntervals, extractTimeIntervals, wrapElementsInLikeStatement
-
Constructor Details
-
TaskQuerySortParameter
@ConstructorProperties({"sort-by","order"}) public TaskQuerySortParameter(List<TaskController.TaskQuerySortBy> sortBy, List<pro.taskana.common.api.BaseQuery.SortDirection> order) throws pro.taskana.common.api.exceptions.InvalidArgumentException - Throws:
pro.taskana.common.api.exceptions.InvalidArgumentException
-
-
Method Details
-
getSortBy
Description copied from class:QuerySortParameterSort the result by a given field. Multiple sort values can be declared. When the primary sort value is the same, the second one will be used.- Overrides:
getSortByin classQuerySortParameter<pro.taskana.task.api.TaskQuery,TaskController.TaskQuerySortBy> - Returns:
- the sort values
-