Interface DashboardService
- All Known Implementing Classes:
DashboardServiceImpl
public interface DashboardService
-
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 inputParameterValues, com.fasterxml.jackson.databind.JsonNode optionValues, OutputStream outputStream) Returns the data for one component of a dashboard, as CSV and written directly to the outputsteam to avoid loading it in memory.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 type) getAvailableVariables(String dashboardId, String tenantId, String variableNameLike, com.fasterxml.jackson.databind.JsonNode inputParameters, int responseSize) getDashboardComponentInfo(String dashboardId) Returns the metadata 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 newDashboardfor the given user and tenant. -
createDashboardQuery
DashboardQuery createDashboardQuery()Create aDashboardQuerywhich can be used to query existing dashboards. -
delete
Deletes aDashboard. -
getAvailableComponentDefinitions
Returns a catalogue of components (returned as a list ofDashboardComponentDefinitionModels) that can be added to theDashboardwith 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 -
getDashboardComponentInfo
List<DashboardComponentDefinitionModel.DashboardComponentInfo> getDashboardComponentInfo(String dashboardId) Returns the metadata of all components for the dashboard with the provided id. The map will have the component instance id as key and the list of input parameters as value. -
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) Returns the data for one component of a dashboard, as CSV and written directly to the outputsteam to avoid loading it in memory.
-