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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.morpheusdata.core.providers.PluginProvider
PluginProvider.EventSubscriberFacet<E extends Event> -
Constructor Summary
Constructors -
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, waitMethods inherited from interface com.morpheusdata.core.dashboard.DashboardProvider
getDashboardMethods 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:UIExtensionProviderDefault is Handlebars- Specified by:
getRendererin interfaceUIExtensionProvider- Returns:
- renderer of specified type
-
getContentSecurityPolicy
Allows various sources used in the template to be loaded- Specified by:
getContentSecurityPolicyin interfaceUIExtensionProvider- Returns:
-
renderDashboard
render the dashboard template- Specified by:
renderDashboardin 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:
getDashboardScriptPathin interfaceDashboardProvider- Parameters:
dashboard- the dashboard to get the script foropts- request option map- Returns:
-