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:
-
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 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, waitMethods inherited from interface com.morpheusdata.core.dashboard.DashboardItemTypeProvider
getDashboardItemTypeMethods 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: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:
-
renderDashboardItem
render the dashboard item template- Specified by:
renderDashboardItemin 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:
getDashboardItemScriptPathin interfaceDashboardItemTypeProvider- Parameters:
dashboardItem- the dashboard item to get the script foropts- request option map- Returns:
-