Class TasksIndexQueryBuilder
java.lang.Object
com.flowable.platform.service.index.PlatformIndexQueryBuilder<TasksIndexQueryRequest>
com.flowable.platform.service.task.TasksIndexQueryBuilder
public class TasksIndexQueryBuilder extends PlatformIndexQueryBuilder<TasksIndexQueryRequest>
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Map<java.lang.String,java.lang.String>
SORT_ALTERNATIVE
Fields inherited from class com.flowable.platform.service.index.PlatformIndexQueryBuilder
customQuery, customSortParameters, objectMapper, order, sort
-
Constructor Summary
Constructors Constructor Description TasksIndexQueryBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
TasksIndexQueryBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.node.ObjectNode customQuery, java.util.Map<java.lang.String,SortParameter> sortParameters)
-
Method Summary
Modifier and Type Method Description protected java.lang.String
build(TasksIndexQueryRequest request)
java.lang.String
build(TasksIndexQueryRequest queryRequest, java.lang.String defaultSort)
protected java.lang.String
getIndexSortName(java.lang.String sort)
Method that custom query builder can override to provide an alternative sort name for a particular sort.Methods inherited from class com.flowable.platform.service.index.PlatformIndexQueryBuilder
determineOrder, determineSort, getCustomQuery, getCustomSortParameters, getOrder, getQueryBuilder, getSort, parameterTypeToIndexedProperty, processSorting, setCustomQuery, setCustomSortParameters
-
Field Details
-
SORT_ALTERNATIVE
protected static final java.util.Map<java.lang.String,java.lang.String> SORT_ALTERNATIVE
-
-
Constructor Details
-
TasksIndexQueryBuilder
public TasksIndexQueryBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
TasksIndexQueryBuilder
public TasksIndexQueryBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.node.ObjectNode customQuery, java.util.Map<java.lang.String,SortParameter> sortParameters)
-
-
Method Details
-
build
- Specified by:
build
in classPlatformIndexQueryBuilder<TasksIndexQueryRequest>
-
build
-
getIndexSortName
protected java.lang.String getIndexSortName(java.lang.String sort)Description copied from class:PlatformIndexQueryBuilder
Method that custom query builder can override to provide an alternative sort name for a particular sort. For example when sorting by name the sort should be done by nameKeyword instead.- Overrides:
getIndexSortName
in classPlatformIndexQueryBuilder<TasksIndexQueryRequest>
- Parameters:
sort
- the requested sort- Returns:
- the sort that should be used
-