Package pro.taskana.task.rest
Class TaskCommentController.TaskCommentQuerySortParameter
java.lang.Object
pro.taskana.common.rest.QuerySortParameter<pro.taskana.task.api.TaskCommentQuery,TaskCommentController.TaskCommentQuerySortBy>
pro.taskana.task.rest.TaskCommentController.TaskCommentQuerySortParameter
- All Implemented Interfaces:
QueryParameter<pro.taskana.task.api.TaskCommentQuery,Void>
- Enclosing class:
- TaskCommentController
public static class TaskCommentController.TaskCommentQuerySortParameter
extends QuerySortParameter<pro.taskana.task.api.TaskCommentQuery,TaskCommentController.TaskCommentQuerySortBy>
-
Constructor Summary
ConstructorsConstructorDescriptionTaskCommentQuerySortParameter(List<TaskCommentController.TaskCommentQuerySortBy> 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
-
TaskCommentQuerySortParameter
@ConstructorProperties({"sort-by","order"}) public TaskCommentQuerySortParameter(List<TaskCommentController.TaskCommentQuerySortBy> 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.TaskCommentQuery,TaskCommentController.TaskCommentQuerySortBy> - Returns:
- the sort values
-