Class DashboardComponentInputValuesTransformerImpl
java.lang.Object
com.flowable.platform.service.dashboard.transformer.DashboardComponentInputValuesTransformerImpl
- All Implemented Interfaces:
DashboardComponentInputValuesTransformer
public class DashboardComponentInputValuesTransformerImpl
extends Object
implements DashboardComponentInputValuesTransformer
Takes a generic JSON object and flattens it into the usable data bits,
relevant for the provided filter and aggregation configuration.
-
Field Summary
Modifier and TypeFieldDescriptionprotected PlatformRepositoryService
protected StandardDataQueryInputValuesTransformer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(QueryParameter queryParameter) getDashboardComponentInputParameters
(Dashboard dashboard, DashboardComponentDefinitionModel definitionModel) boolean
processOptionTypes
(DashboardComponentDefinitionModel definitionModel, Map<String, Object> map, String field, String type, com.fasterxml.jackson.databind.JsonNode value) transformInputParametersToStandardQueryInput
(Dashboard dashboard, DashboardComponentDefinitionModel definitionModel, com.fasterxml.jackson.databind.JsonNode queryInputParameterValues) Returns a map instead of a rich object with types fields using theStandardDataQueryPayloadParameters
keys so it can be reused for queries with template too.transformOptionsToStandardQueryInput
(Dashboard dashboard, DashboardComponentDefinitionModel definitionModel, com.fasterxml.jackson.databind.JsonNode optionValues) Returns a map instead of a rich object with types fields, using theStandardDataQueryPayloadParameters
keys so it can be reused for queries with template too.
-
Field Details
-
standardDataQueryInputValuesTransformer
@Autowired protected StandardDataQueryInputValuesTransformer standardDataQueryInputValuesTransformer -
platformRepositoryService
-
-
Constructor Details
-
DashboardComponentInputValuesTransformerImpl
public DashboardComponentInputValuesTransformerImpl()
-
-
Method Details
-
transformInputParametersToStandardQueryInput
public Map<String,Object> transformInputParametersToStandardQueryInput(Dashboard dashboard, DashboardComponentDefinitionModel definitionModel, com.fasterxml.jackson.databind.JsonNode queryInputParameterValues) Description copied from interface:DashboardComponentInputValuesTransformer
Returns a map instead of a rich object with types fields using theStandardDataQueryPayloadParameters
keys so it can be reused for queries with template too.- Specified by:
transformInputParametersToStandardQueryInput
in interfaceDashboardComponentInputValuesTransformer
-
getDashboardComponentInputParameters
protected List<DashboardComponentDefinitionModel.DashboardComponentInputParameter> getDashboardComponentInputParameters(Dashboard dashboard, DashboardComponentDefinitionModel definitionModel) -
convert
protected DashboardComponentDefinitionModel.DashboardComponentInputParameter convert(QueryParameter queryParameter) -
transformOptionsToStandardQueryInput
public Map<String,Object> transformOptionsToStandardQueryInput(Dashboard dashboard, DashboardComponentDefinitionModel definitionModel, com.fasterxml.jackson.databind.JsonNode optionValues) Description copied from interface:DashboardComponentInputValuesTransformer
Returns a map instead of a rich object with types fields, using theStandardDataQueryPayloadParameters
keys so it can be reused for queries with template too.- Specified by:
transformOptionsToStandardQueryInput
in interfaceDashboardComponentInputValuesTransformer
-
processOptionTypes
-