Package com.morpheusdata.core.dashboard
Class AbstractDashboardProvider
- java.lang.Object
-
- com.morpheusdata.core.dashboard.AbstractDashboardProvider
-
- All Implemented Interfaces:
DashboardProvider
,PluginProvider
,UIExtensionProvider
public abstract class AbstractDashboardProvider extends java.lang.Object implements DashboardProvider
The Abstract representation for rendering a dashboard.- See Also:
DashboardProvider
-
-
Constructor Summary
Constructors Constructor Description AbstractDashboardProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentSecurityPolicy
getContentSecurityPolicy()
Allows various sources used in the template to be loadedjava.lang.String
getDashboardScriptPath(Dashboard dashboard, java.util.Map<java.lang.String,java.lang.Object> opts)
get the relative url path for the script for this dashboardRenderer<?>
getRenderer()
Default is HandlebarsHTMLResponse
renderDashboard(Dashboard dashboard, java.util.Map<java.lang.String,java.lang.Object> opts)
render the dashboard template-
Methods 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.PluginProvider
getCode, getMorpheus, getName, getPlugin, isPlugin
-
-
-
-
Method Detail
-
getRenderer
public Renderer<?> getRenderer()
Description copied from interface:UIExtensionProvider
Default is Handlebars- Specified by:
getRenderer
in interfaceUIExtensionProvider
- Returns:
- renderer of specified type
-
getContentSecurityPolicy
public ContentSecurityPolicy getContentSecurityPolicy()
Allows various sources used in the template to be loaded- Specified by:
getContentSecurityPolicy
in interfaceUIExtensionProvider
- Returns:
-
renderDashboard
public HTMLResponse renderDashboard(Dashboard dashboard, java.util.Map<java.lang.String,java.lang.Object> opts)
render the dashboard template- Specified by:
renderDashboard
in interfaceDashboardProvider
- Parameters:
dashboard
- the dashboard to renderopts
- request option map- Returns:
-
getDashboardScriptPath
public java.lang.String getDashboardScriptPath(Dashboard dashboard, java.util.Map<java.lang.String,java.lang.Object> opts)
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:
-
-