Interface DashboardService
- All Known Implementing Classes:
DashboardServiceImpl
public interface DashboardService
-
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 inputParameterValues, com.fasterxml.jackson.databind.JsonNode optionValues, OutputStream outputStream) 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 type) getAvailableVariables
(String dashboardId, String tenantId, String variableNameLike, com.fasterxml.jackson.databind.JsonNode inputParameters, int responseSize) 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.
-
Method Details
-
createDashboard
Creates a newDashboard
for the given user and tenant. -
createDashboardQuery
DashboardQuery createDashboardQuery()Create aDashboardQuery
which can be used to query existing dashboards. -
delete
Deletes aDashboard
. -
getAvailableComponentDefinitions
Returns a catalogue of components (returned as a list ofDashboardComponentDefinitionModel
s) that can be added to theDashboard
with the provided id. -
getAvailableVariables
List<DashboardAvailableVariable> getAvailableVariables(String dashboardId, String tenantId, String variableNameLike, com.fasterxml.jackson.databind.JsonNode inputParameters, int responseSize) -
getAvailableInputParameterValues
List<DashboardParameterValue> getAvailableInputParameterValues(String dashboardId, String tenantId, String type) -
createDashboardUpdateBuilder
Updates the dashboard configuration -
getDashboardInputParameters
List<DashboardComponentDefinitionModel.DashboardComponentInputParameter> getDashboardInputParameters(String dashboardId) Returns the union of all input parameters of all components for the dashboard with the provided id. -
getData
DashboardComponentData 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. -
exportDataAsCSV
void exportDataAsCSV(String dashboardId, String componentDefinitionKey, com.fasterxml.jackson.databind.JsonNode inputParameterValues, com.fasterxml.jackson.databind.JsonNode optionValues, OutputStream outputStream)
-