Class DashboardServiceImpl
java.lang.Object
com.flowable.platform.service.dashboard.DashboardServiceImpl
- All Implemented Interfaces:
DashboardService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CmmnRepositoryServiceprotected DashboardConfigurationServiceprotected DashboardComponentInputValuesTransformerprotected com.fasterxml.jackson.databind.ObjectMapperprotected PlatformRepositoryServiceprotected QueryResultToCsvTransformerServiceprotected QueryServiceprotected RepositoryServiceprotected ResourceHelperprotected SearchService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDashboard(String name, String currentUserId, String currentTenantId) Creates a newDashboardfor the given user and tenant.Create aDashboardQuerywhich can be used to query existing dashboards.createDashboardUpdateBuilder(String dashboardId) Updates the dashboard configurationvoidDeletes aDashboard.voidexportDataAsCSV(String dashboardId, String componentDefinitionKey, com.fasterxml.jackson.databind.JsonNode requestInputParameterValues, com.fasterxml.jackson.databind.JsonNode requestOptionValues, OutputStream outputStream) protected List<DashboardAvailableVariable>extractAvailableVariables(com.fasterxml.jackson.databind.JsonNode queryResponse) getAvailableComponentDefinitions(String dashboardId) Returns a catalogue of components (returned as a list ofDashboardComponentDefinitionModels) that can be added to theDashboardwith the provided id.getAvailableInputParameterValues(String dashboardId, String tenantId, String parameterName) getAvailableVariables(String dashboardId, String tenantId, String variableNameLike, com.fasterxml.jackson.databind.JsonNode inputParameters, int responseSize) protected DashboardConfigurationgetDashboardConfiguration(Dashboard dashboard) getDashboardInputParameters(String dashboardId) Returns the union of all input parameters of all components for the dashboard with the provided id.getData(String dashboardId, String componentDefinitionKey, com.fasterxml.jackson.databind.JsonNode inputParameterValues, com.fasterxml.jackson.databind.JsonNode optionValues) Returns the data for one component of a dashboard, using the provided input parameters and options.protected DashboardComponentDatainternalGetData(Dashboard dashboard, String componentDefinitionKey, com.fasterxml.jackson.databind.JsonNode inputParameterValues, com.fasterxml.jackson.databind.JsonNode optionValues)
-
Field Details
-
dashboardConfigurationService
-
jsonToStandardQueryInputTransformer
-
queryResultToCsvTransformerService
-
dashboardComponentQueryResultMapperService
@Autowired protected DashboardComponentQueryResultMapperService dashboardComponentQueryResultMapperService -
platformRepositoryService
-
queryService
-
searchService
-
repositoryService
-
cmmnRepositoryService
-
resourceHelper
-
objectMapper
-
-
Constructor Details
-
DashboardServiceImpl
public DashboardServiceImpl()
-
-
Method Details
-
createDashboard
Description copied from interface:DashboardServiceCreates a newDashboardfor the given user and tenant.- Specified by:
createDashboardin interfaceDashboardService
-
createDashboardQuery
Description copied from interface:DashboardServiceCreate aDashboardQuerywhich can be used to query existing dashboards.- Specified by:
createDashboardQueryin interfaceDashboardService
-
delete
Description copied from interface:DashboardServiceDeletes aDashboard.- Specified by:
deletein interfaceDashboardService
-
getAvailableComponentDefinitions
Description copied from interface:DashboardServiceReturns a catalogue of components (returned as a list ofDashboardComponentDefinitionModels) that can be added to theDashboardwith the provided id.- Specified by:
getAvailableComponentDefinitionsin interfaceDashboardService
-
getAvailableVariables
public List<DashboardAvailableVariable> getAvailableVariables(String dashboardId, String tenantId, String variableNameLike, com.fasterxml.jackson.databind.JsonNode inputParameters, int responseSize) - Specified by:
getAvailableVariablesin interfaceDashboardService
-
getAvailableInputParameterValues
public List<DashboardParameterValue> getAvailableInputParameterValues(String dashboardId, String tenantId, String parameterName) - Specified by:
getAvailableInputParameterValuesin interfaceDashboardService
-
extractAvailableVariables
protected List<DashboardAvailableVariable> extractAvailableVariables(com.fasterxml.jackson.databind.JsonNode queryResponse) -
createDashboardUpdateBuilder
Description copied from interface:DashboardServiceUpdates the dashboard configuration- Specified by:
createDashboardUpdateBuilderin interfaceDashboardService
-
getDashboardInputParameters
public List<DashboardComponentDefinitionModel.DashboardComponentInputParameter> getDashboardInputParameters(String dashboardId) Description copied from interface:DashboardServiceReturns the union of all input parameters of all components for the dashboard with the provided id.- Specified by:
getDashboardInputParametersin interfaceDashboardService
-
getData
public DashboardComponentData getData(String dashboardId, String componentDefinitionKey, com.fasterxml.jackson.databind.JsonNode inputParameterValues, com.fasterxml.jackson.databind.JsonNode optionValues) Description copied from interface:DashboardServiceReturns the data for one component of a dashboard, using the provided input parameters and options.- Specified by:
getDatain interfaceDashboardService
-
exportDataAsCSV
public void exportDataAsCSV(String dashboardId, String componentDefinitionKey, com.fasterxml.jackson.databind.JsonNode requestInputParameterValues, com.fasterxml.jackson.databind.JsonNode requestOptionValues, OutputStream outputStream) - Specified by:
exportDataAsCSVin interfaceDashboardService
-
internalGetData
protected DashboardComponentData internalGetData(Dashboard dashboard, String componentDefinitionKey, com.fasterxml.jackson.databind.JsonNode inputParameterValues, com.fasterxml.jackson.databind.JsonNode optionValues) -
getDashboardConfiguration
-