Class StandardDataQueryTransformerServiceImpl
java.lang.Object
com.flowable.indexing.query.builder.standard.StandardDataQueryTransformerServiceImpl
- All Implemented Interfaces:
StandardDataQueryTransformerService
public class StandardDataQueryTransformerServiceImpl
extends Object
implements StandardDataQueryTransformerService
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected StandardDataQueryInputValuesTransformer
protected com.fasterxml.jackson.databind.ObjectMapper
protected StandardDataQuerySafeQueryTransformer
-
Constructor Summary
ConstructorDescriptionStandardDataQueryTransformerServiceImpl
(StandardDataQueryInputValuesTransformer inputValuesTransformer, StandardDataQuerySafeQueryTransformer standardDataQuerySafeQueryTransformer, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected StandardDataQueryBuilder
createQueryBuilder
(QueryDefinitionModel queryDefinitionModel, Map<String, Object> queryPayload) protected String
getGroupByOptionValue
(Map<String, Object> queryPayload) protected void
processMembers
(Map<String, Object> queryPayload, StandardDataQueryBuilder queryBuilder, com.fasterxml.jackson.databind.JsonNode membersJsonNode, StandardDataQueryBuilder.FilterList filterList) protected void
transformAggregations
(com.fasterxml.jackson.databind.JsonNode configurationJsonNode, StandardDataQueryBuilder queryBuilder, Map<String, Object> queryPayload) protected void
transformPagingParameters
(Map<String, Object> queryPayload, StandardDataQueryBuilder queryBuilder, com.fasterxml.jackson.databind.JsonNode configurationJsonNode) protected void
transformProcessFilterDefinition
(Map<String, Object> queryPayload, StandardDataQueryBuilder queryBuilder, com.fasterxml.jackson.databind.JsonNode filterDefinitionNode) protected void
transformResponseDefinition
(com.fasterxml.jackson.databind.JsonNode configurationJsonNode, StandardDataQueryBuilder queryBuilder) protected void
transformSortingParameters
(Map<String, Object> queryPayload, StandardDataQueryBuilder queryBuilder, com.fasterxml.jackson.databind.JsonNode configurationJsonNode) com.fasterxml.jackson.databind.JsonNode
transformToElasticsearchQuery
(QueryDefinitionModel queryDefinitionModel, Map<String, Object> queryPayload) Transforms the givenQueryDefinitionModel
to an Elasticsearch JSON query, using the provided payload.transformToElasticsearchQueryBuilder
(QueryDefinitionModel queryDefinitionModel, Map<String, Object> queryPayload) Similar toStandardDataQueryTransformerService.transformToElasticsearchQuery(QueryDefinitionModel, Map)
, but doesn't yet build the JSON for the query.protected void
transformVariableValueFilter
(StandardDataQueryBuilder.FilterList filterList, com.fasterxml.jackson.databind.JsonNode variableValueFilter) protected void
transformVariableValueFilterOperation
(StandardDataQueryBuilder.Filter filter, com.fasterxml.jackson.databind.JsonNode filterEntry) protected com.fasterxml.jackson.databind.JsonNode
validateQueryDefinitionModel
(QueryDefinitionModel queryDefinitionModel)
-
Field Details
-
GROUP_BY_DATE_FIELD_OPTIONS
-
GROUP_BY_DATE_DEFAULT_VALUE
-
inputValuesTransformer
-
standardDataQuerySafeQueryTransformer
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
StandardDataQueryTransformerServiceImpl
public StandardDataQueryTransformerServiceImpl(StandardDataQueryInputValuesTransformer inputValuesTransformer, StandardDataQuerySafeQueryTransformer standardDataQuerySafeQueryTransformer, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
transformToElasticsearchQueryBuilder
public StandardDataQueryBuilder transformToElasticsearchQueryBuilder(QueryDefinitionModel queryDefinitionModel, Map<String, Object> queryPayload) Description copied from interface:StandardDataQueryTransformerService
Similar toStandardDataQueryTransformerService.transformToElasticsearchQuery(QueryDefinitionModel, Map)
, but doesn't yet build the JSON for the query. This is useful if changes need to be done to the returnedStandardDataQueryBuilder
. For example, when exporting all data of a query, this method is used to reuse the filter part, but change the paging until all data is returned.- Specified by:
transformToElasticsearchQueryBuilder
in interfaceStandardDataQueryTransformerService
-
transformToElasticsearchQuery
public com.fasterxml.jackson.databind.JsonNode transformToElasticsearchQuery(QueryDefinitionModel queryDefinitionModel, Map<String, Object> queryPayload) Description copied from interface:StandardDataQueryTransformerService
Transforms the givenQueryDefinitionModel
to an Elasticsearch JSON query, using the provided payload.- Specified by:
transformToElasticsearchQuery
in interfaceStandardDataQueryTransformerService
-
createQueryBuilder
protected StandardDataQueryBuilder createQueryBuilder(QueryDefinitionModel queryDefinitionModel, Map<String, Object> queryPayload) -
validateQueryDefinitionModel
protected com.fasterxml.jackson.databind.JsonNode validateQueryDefinitionModel(QueryDefinitionModel queryDefinitionModel) -
transformPagingParameters
protected void transformPagingParameters(Map<String, Object> queryPayload, StandardDataQueryBuilder queryBuilder, com.fasterxml.jackson.databind.JsonNode configurationJsonNode) -
transformSortingParameters
protected void transformSortingParameters(Map<String, Object> queryPayload, StandardDataQueryBuilder queryBuilder, com.fasterxml.jackson.databind.JsonNode configurationJsonNode) -
transformProcessFilterDefinition
protected void transformProcessFilterDefinition(Map<String, Object> queryPayload, StandardDataQueryBuilder queryBuilder, com.fasterxml.jackson.databind.JsonNode filterDefinitionNode) -
processMembers
protected void processMembers(Map<String, Object> queryPayload, StandardDataQueryBuilder queryBuilder, com.fasterxml.jackson.databind.JsonNode membersJsonNode, StandardDataQueryBuilder.FilterList filterList) -
transformVariableValueFilter
protected void transformVariableValueFilter(StandardDataQueryBuilder.FilterList filterList, com.fasterxml.jackson.databind.JsonNode variableValueFilter) -
transformVariableValueFilterOperation
protected void transformVariableValueFilterOperation(StandardDataQueryBuilder.Filter filter, com.fasterxml.jackson.databind.JsonNode filterEntry) -
transformResponseDefinition
protected void transformResponseDefinition(com.fasterxml.jackson.databind.JsonNode configurationJsonNode, StandardDataQueryBuilder queryBuilder) -
transformAggregations
protected void transformAggregations(com.fasterxml.jackson.databind.JsonNode configurationJsonNode, StandardDataQueryBuilder queryBuilder, Map<String, Object> queryPayload) -
getGroupByOptionValue
-