Interface DashboardProvider

    • Method Detail

      • getDashboard

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

        HTMLResponse renderDashboard​(Dashboard dashboard,
                                     java.util.Map<java.lang.String,​java.lang.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

        java.lang.String getDashboardScriptPath​(Dashboard dashboard,
                                                java.util.Map<java.lang.String,​java.lang.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