Class PlatformIndexQueryBuilder<REQ extends PlatformIndexQueryRequest>
java.lang.Object
com.flowable.platform.service.index.PlatformIndexQueryBuilder<REQ>
- Direct Known Subclasses:
CaseInstancesIndexQueryBuilder,ProcessInstancesIndexQueryBuilder,TasksIndexQueryBuilder,WorkInstancesIndexQueryBuilder
public abstract class PlatformIndexQueryBuilder<REQ extends PlatformIndexQueryRequest>
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.node.ObjectNodeprotected Map<String,SortParameter> protected com.fasterxml.jackson.databind.ObjectMapperprotected Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionPlatformIndexQueryBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper) PlatformIndexQueryBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.node.ObjectNode customQuery, Map<String, SortParameter> customSortParameters) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Stringprotected StringdetermineOrder(PaginateRequest request) protected StringdetermineSort(PaginateRequest request, String defaultSort) com.fasterxml.jackson.databind.node.ObjectNodeprotected StringgetIndexSortName(String sort) Method that custom query builder can override to provide an alternative sort name for a particular sort.getOrder()protected FilteredFullTextSearchQueryBuildergetQueryBuilder(REQ request, String defaultSort) getSort()protected StringparameterTypeToIndexedProperty(SortParameter sortParameter) protected voidprocessSorting(PlatformIndexQueryRequest request, String defaultSort, FilteredFullTextSearchQueryBuilder queryBuilder) voidsetCustomQuery(com.fasterxml.jackson.databind.node.ObjectNode customQuery) voidsetCustomSortParameters(Map<String, SortParameter> customSortParameters)
-
Field Details
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
customQuery
protected com.fasterxml.jackson.databind.node.ObjectNode customQuery -
sort
-
customSortParameters
-
order
-
-
Constructor Details
-
PlatformIndexQueryBuilder
public PlatformIndexQueryBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
PlatformIndexQueryBuilder
public PlatformIndexQueryBuilder(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.node.ObjectNode customQuery, Map<String, SortParameter> customSortParameters)
-
-
Method Details
-
build
-
getQueryBuilder
-
processSorting
protected void processSorting(PlatformIndexQueryRequest request, String defaultSort, FilteredFullTextSearchQueryBuilder queryBuilder) -
getIndexSortName
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.- Parameters:
sort- the requested sort- Returns:
- the sort that should be used
-
determineSort
-
determineOrder
-
getOrder
-
getSort
-
parameterTypeToIndexedProperty
-
getCustomQuery
public com.fasterxml.jackson.databind.node.ObjectNode getCustomQuery() -
setCustomQuery
public void setCustomQuery(com.fasterxml.jackson.databind.node.ObjectNode customQuery) -
getCustomSortParameters
-
setCustomSortParameters
-