Class DashboardServiceImpl
java.lang.Object
com.flowable.platform.service.dashboard.DashboardServiceImpl
- All Implemented Interfaces:
DashboardService
-
Field Summary
Modifier and TypeFieldDescriptionprotected CmmnRepositoryService
protected DashboardConfigurationService
protected DashboardComponentInputValuesTransformer
protected com.fasterxml.jackson.databind.ObjectMapper
protected PlatformRepositoryService
protected QueryResultToCsvTransformerService
protected QueryService
protected RepositoryService
protected ResourceHelper
protected SearchService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateDashboard
(String name, String currentUserId, String currentTenantId) Creates a newDashboard
for the given user and tenant.Create aDashboardQuery
which can be used to query existing dashboards.createDashboardUpdateBuilder
(String dashboardId) Updates the dashboard configurationvoid
Deletes aDashboard
.void
exportDataAsCSV
(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 ofDashboardComponentDefinitionModel
s) that can be added to theDashboard
with 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 DashboardConfiguration
getDashboardConfiguration
(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 DashboardComponentData
internalGetData
(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:DashboardService
Creates a newDashboard
for the given user and tenant.- Specified by:
createDashboard
in interfaceDashboardService
-
createDashboardQuery
Description copied from interface:DashboardService
Create aDashboardQuery
which can be used to query existing dashboards.- Specified by:
createDashboardQuery
in interfaceDashboardService
-
delete
Description copied from interface:DashboardService
Deletes aDashboard
.- Specified by:
delete
in interfaceDashboardService
-
getAvailableComponentDefinitions
Description copied from interface:DashboardService
Returns a catalogue of components (returned as a list ofDashboardComponentDefinitionModel
s) that can be added to theDashboard
with the provided id.- Specified by:
getAvailableComponentDefinitions
in interfaceDashboardService
-
getAvailableVariables
public List<DashboardAvailableVariable> getAvailableVariables(String dashboardId, String tenantId, String variableNameLike, com.fasterxml.jackson.databind.JsonNode inputParameters, int responseSize) - Specified by:
getAvailableVariables
in interfaceDashboardService
-
getAvailableInputParameterValues
public List<DashboardParameterValue> getAvailableInputParameterValues(String dashboardId, String tenantId, String parameterName) - Specified by:
getAvailableInputParameterValues
in interfaceDashboardService
-
extractAvailableVariables
protected List<DashboardAvailableVariable> extractAvailableVariables(com.fasterxml.jackson.databind.JsonNode queryResponse) -
createDashboardUpdateBuilder
Description copied from interface:DashboardService
Updates the dashboard configuration- Specified by:
createDashboardUpdateBuilder
in interfaceDashboardService
-
getDashboardInputParameters
public List<DashboardComponentDefinitionModel.DashboardComponentInputParameter> getDashboardInputParameters(String dashboardId) Description copied from interface:DashboardService
Returns the union of all input parameters of all components for the dashboard with the provided id.- Specified by:
getDashboardInputParameters
in 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:DashboardService
Returns the data for one component of a dashboard, using the provided input parameters and options.- Specified by:
getData
in 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:
exportDataAsCSV
in interfaceDashboardService
-
internalGetData
protected DashboardComponentData internalGetData(Dashboard dashboard, String componentDefinitionKey, com.fasterxml.jackson.databind.JsonNode inputParameterValues, com.fasterxml.jackson.databind.JsonNode optionValues) -
getDashboardConfiguration
-