Package com.morpheusdata.core.dashboard
Class AbstractDashboardItemTypeProvider
java.lang.Object
com.morpheusdata.core.dashboard.AbstractDashboardItemTypeProvider
- All Implemented Interfaces:
DashboardItemTypeProvider
,PluginProvider
,UIExtensionProvider
public abstract class AbstractDashboardItemTypeProvider
extends Object
implements DashboardItemTypeProvider
The Abstract representation for defining and rendering a dashboard item.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAllows various sources used in the template to be loadedgetDashboardItemScriptPath
(DashboardItem dashboardItem, Map<String, Object> opts) get the relative url path for the script for this itemRenderer<?>
Default is HandlebarsrenderDashboardItem
(DashboardItem dashboardItem, Map<String, Object> opts) render the dashboard item 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.DashboardItemTypeProvider
getDashboardItemType
Methods inherited from interface com.morpheusdata.core.providers.PluginProvider
getCode, getMorpheus, getName, getPlugin, isPlugin
-
Constructor Details
-
AbstractDashboardItemTypeProvider
public AbstractDashboardItemTypeProvider()
-
-
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:
-
renderDashboardItem
render the dashboard item template- Specified by:
renderDashboardItem
in interfaceDashboardItemTypeProvider
- Parameters:
dashboardItem
- the dashboard item to renderopts
- request option map- Returns:
-
getDashboardItemScriptPath
get the relative url path for the script for this item- Specified by:
getDashboardItemScriptPath
in interfaceDashboardItemTypeProvider
- Parameters:
dashboardItem
- the dashboard item to get the script foropts
- request option map- Returns:
-