Class DashboardComponentQueryResultMapperService
java.lang.Object
com.flowable.platform.service.dashboard.resultmapper.DashboardComponentQueryResultMapperService
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplyQueryResultMapping
(DashboardComponentDefinitionModel dashboardComponentDefinitionModel, QueryDefinitionModel queryDefinitionModel, Map<String, Object> queryPayload, com.fasterxml.jackson.databind.JsonNode result) protected String
createJsonPointerExpressionForAggregation
(String aggregationDefinitionName, String aggregationDefinitionType) extractAggregationNamesAndTypes
(QueryDefinitionModel queryDefinitionModel) protected String
getAggregationType
(List<org.apache.commons.lang3.tuple.Pair<String, String>> aggregationNamesToTypesList, String aggregationDefinitionName) protected DashboardComponentData
handleBarChartDashboardComponent
(com.fasterxml.jackson.databind.JsonNode queryResult, List<DashboardComponentDefinitionModel.DashboardComponentAggregationDefinition> componentAggregationDefinitions, List<org.apache.commons.lang3.tuple.Pair<String, String>> queryAggregationNamesToTypesList) protected DashboardComponentData
handleLineChartDashboardComponent
(com.fasterxml.jackson.databind.JsonNode queryResult, List<DashboardComponentDefinitionModel.DashboardComponentAggregationDefinition> componentAggregationDefinitions, List<org.apache.commons.lang3.tuple.Pair<String, String>> queryAggregationNamesToTypesList) protected DashboardComponentData
handlePieChartDashboardComponent
(com.fasterxml.jackson.databind.JsonNode queryResult, List<DashboardComponentDefinitionModel.DashboardComponentAggregationDefinition> componentAggregationDefinitions, List<org.apache.commons.lang3.tuple.Pair<String, String>> queryAggregationNamesToTypesList) protected DashboardComponentData
handleTableDashboardComponent
(DashboardComponentDefinitionModel dashboardComponentDefinitionModel, com.fasterxml.jackson.databind.JsonNode queryResult, List<DashboardComponentDefinitionModel.DashboardComponentAggregationDefinition> componentAggregationDefinitions, List<org.apache.commons.lang3.tuple.Pair<String, String>> queryAggregationNamesToTypesList) protected DashboardComponentData
handleValueDashboardComponent
(com.fasterxml.jackson.databind.JsonNode queryResult, List<DashboardComponentDefinitionModel.DashboardComponentAggregationDefinition> componentAggregationDefinitions, List<org.apache.commons.lang3.tuple.Pair<String, String>> queryAggregationNamesToTypesList)
-
Field Details
-
queryResultMappers
-
-
Constructor Details
-
DashboardComponentQueryResultMapperService
public DashboardComponentQueryResultMapperService()
-
-
Method Details
-
applyQueryResultMapping
public DashboardComponentData applyQueryResultMapping(DashboardComponentDefinitionModel dashboardComponentDefinitionModel, QueryDefinitionModel queryDefinitionModel, Map<String, Object> queryPayload, com.fasterxml.jackson.databind.JsonNode result) -
extractAggregationNamesAndTypes
protected List<org.apache.commons.lang3.tuple.Pair<String,String>> extractAggregationNamesAndTypes(QueryDefinitionModel queryDefinitionModel) -
handleValueDashboardComponent
protected DashboardComponentData handleValueDashboardComponent(com.fasterxml.jackson.databind.JsonNode queryResult, List<DashboardComponentDefinitionModel.DashboardComponentAggregationDefinition> componentAggregationDefinitions, List<org.apache.commons.lang3.tuple.Pair<String, String>> queryAggregationNamesToTypesList) -
handlePieChartDashboardComponent
protected DashboardComponentData handlePieChartDashboardComponent(com.fasterxml.jackson.databind.JsonNode queryResult, List<DashboardComponentDefinitionModel.DashboardComponentAggregationDefinition> componentAggregationDefinitions, List<org.apache.commons.lang3.tuple.Pair<String, String>> queryAggregationNamesToTypesList) -
handleBarChartDashboardComponent
protected DashboardComponentData handleBarChartDashboardComponent(com.fasterxml.jackson.databind.JsonNode queryResult, List<DashboardComponentDefinitionModel.DashboardComponentAggregationDefinition> componentAggregationDefinitions, List<org.apache.commons.lang3.tuple.Pair<String, String>> queryAggregationNamesToTypesList) -
handleLineChartDashboardComponent
protected DashboardComponentData handleLineChartDashboardComponent(com.fasterxml.jackson.databind.JsonNode queryResult, List<DashboardComponentDefinitionModel.DashboardComponentAggregationDefinition> componentAggregationDefinitions, List<org.apache.commons.lang3.tuple.Pair<String, String>> queryAggregationNamesToTypesList) -
handleTableDashboardComponent
protected DashboardComponentData handleTableDashboardComponent(DashboardComponentDefinitionModel dashboardComponentDefinitionModel, com.fasterxml.jackson.databind.JsonNode queryResult, List<DashboardComponentDefinitionModel.DashboardComponentAggregationDefinition> componentAggregationDefinitions, List<org.apache.commons.lang3.tuple.Pair<String, String>> queryAggregationNamesToTypesList) -
getAggregationType
-
createJsonPointerExpressionForAggregation
-