Package com.morpheusdata.core.dashboard
Class AbstractDashboardProvider
java.lang.Object
com.morpheusdata.core.dashboard.AbstractDashboardProvider
- All Implemented Interfaces:
DashboardProvider
,PluginProvider
,UIExtensionProvider
The Abstract representation for rendering a dashboard.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAllows various sources used in the template to be loadedgetDashboardScriptPath
(Dashboard dashboard, Map<String, Object> opts) get the relative url path for the script for this dashboardRenderer<?>
Default is HandlebarsrenderDashboard
(Dashboard dashboard, Map<String, Object> opts) render the dashboard templateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.morpheusdata.core.dashboard.DashboardProvider
getDashboard
Methods inherited from interface com.morpheusdata.core.providers.PluginProvider
getCode, getMorpheus, getName, getPlugin, isPlugin
-
Constructor Details
-
AbstractDashboardProvider
public AbstractDashboardProvider()
-
-
Method Details
-
getRenderer
Description copied from interface:UIExtensionProvider
Default is Handlebars- Specified by:
getRenderer
in interfaceUIExtensionProvider
- Returns:
- renderer of specified type
-
getContentSecurityPolicy
Allows various sources used in the template to be loaded- Specified by:
getContentSecurityPolicy
in interfaceUIExtensionProvider
- Returns:
-
renderDashboard
render the dashboard template- Specified by:
renderDashboard
in interfaceDashboardProvider
- Parameters:
dashboard
- the dashboard to renderopts
- request option map- Returns:
-
getDashboardScriptPath
get the relative url path for the script for this dashboard- Specified by:
getDashboardScriptPath
in interfaceDashboardProvider
- Parameters:
dashboard
- the dashboard to get the script foropts
- request option map- Returns:
-