Interface DashboardProvider

All Superinterfaces:
PluginProvider, UIExtensionProvider
All Known Implementing Classes:
AbstractDashboardProvider

public interface DashboardProvider extends UIExtensionProvider
Provides an interface and standard set of methods for creating custom dashboards
Since:
0.13
  • Method Details

    • getDashboard

      Dashboard getDashboard()
      the dashboard model representing the dashboard to save as an option
      Returns:
      the Dasbhaord model
    • renderDashboard

      HTMLResponse renderDashboard(Dashboard dashboard, Map<String,Object> opts)
      Presents the HTML Rendered output of a dashboard. This can use different Renderer implementations. The preferred is to use server side handlebars rendering with HandlebarsRenderer

      Example Render:

      
          ViewModel model = new ViewModel()
       	  model.object = reportRowsBySection
       	  getRenderer().renderTemplate("hbs/instanceReport", model)
       
      Parameters:
      dashboard - the dashboard to render
      opts - map of input options
      Returns:
      result of rendering a dashboard
    • getDashboardScriptPath

      String getDashboardScriptPath(Dashboard dashboard, Map<String,Object> opts)
      Returns the relative path of a script for this dashboard
      Parameters:
      dashboard - the dashboard to render
      opts - map of input options
      Returns:
      path to a dashboard script