Package com.morpheusdata.core
Interface InstanceTabProvider
-
- All Superinterfaces:
PluginProvider
,UIExtensionProvider
- All Known Implementing Classes:
AbstractInstanceTabProvider
public interface InstanceTabProvider extends UIExtensionProvider
Provides support for custom UI tabs when viewing Instance details
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HTMLResponse
renderTemplate(Instance instance)
Instance details provided to your rendering enginejava.lang.Boolean
show(Instance instance, User user, Account account)
Provide logic when tab should be displayed.-
Methods inherited from interface com.morpheusdata.core.PluginProvider
getCode, getMorpheus, getName, getPlugin, isPlugin
-
Methods inherited from interface com.morpheusdata.core.UIExtensionProvider
getContentSecurityPolicy, getRenderer
-
-
-
-
Method Detail
-
renderTemplate
HTMLResponse renderTemplate(Instance instance)
Instance details provided to your rendering engine- Parameters:
instance
- details of an Instance- Returns:
- result of rendering an template
-
show
java.lang.Boolean show(Instance instance, User user, Account account)
Provide logic when tab should be displayed. This logic is checked after permissions are validated.- Parameters:
instance
- Instance detailsuser
- current User detailsaccount
- Account details- Returns:
- whether the tab should be displayed
-
-