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
Modifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.node.ObjectNode
protected Map<String,
SortParameter> protected com.fasterxml.jackson.databind.ObjectMapper
protected String
protected String
-
Constructor Summary
ConstructorDescriptionPlatformIndexQueryBuilder
(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 String
protected String
determineOrder
(PaginateRequest request) protected String
determineSort
(PaginateRequest request, String defaultSort) com.fasterxml.jackson.databind.node.ObjectNode
protected String
getIndexSortName
(String sort) Method that custom query builder can override to provide an alternative sort name for a particular sort.getOrder()
protected FilteredFullTextSearchQueryBuilder
getQueryBuilder
(REQ request, String defaultSort) getSort()
protected String
parameterTypeToIndexedProperty
(SortParameter sortParameter) protected void
processSorting
(PlatformIndexQueryRequest request, String defaultSort, FilteredFullTextSearchQueryBuilder queryBuilder) void
setCustomQuery
(com.fasterxml.jackson.databind.node.ObjectNode customQuery) void
setCustomSortParameters
(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
-