public interface I_CmsToolHandler
These handlers are created and managed by the
.CmsToolManager
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConfirmationMessage()
Returns an optional confirmation message, displayed in a js confirm dialog.
|
java.lang.String |
getDisabledHelpText()
Returns the help text if disabled.
|
java.lang.String |
getGroup()
Returns the group.
|
java.lang.String |
getHelpText()
Returns the help text.
|
java.lang.String |
getIconPath()
Returns the path to the icon.
|
java.lang.String |
getLink()
Returns the link to the tool.
|
java.lang.String |
getName()
Returns the displayed name.
|
java.util.Map<java.lang.String,java.lang.String[]> |
getParameters(CmsWorkplace wp)
Returns the evaluated map of parameters.
|
java.lang.String |
getPath()
Returns the tool path to install the tool in.
|
float |
getPosition()
Returns the relative position in the group.
|
java.lang.String |
getShortName()
Returns the name for the menu or navbar.
|
java.lang.String |
getSmallIconPath()
Returns the path to an optional small(16x16) icon.
|
boolean |
isEnabled(CmsObject cms)
Returns the state of the admin tool for a given cms context.
|
boolean |
isEnabled(CmsWorkplace wp)
Returns the state of the admin tool for a given workplace context.
|
boolean |
isVisible(CmsObject cms)
Returns the visibility flag for a given cms context.
|
boolean |
isVisible(CmsWorkplace wp)
Returns the visibility flag for a given workplace context.
|
boolean |
setup(CmsObject cms,
CmsToolRootHandler root,
java.lang.String resourcePath)
Main method that somehow setups the admin tool handler.
|
java.lang.String getDisabledHelpText()
java.lang.String getGroup()
java.lang.String getHelpText()
java.lang.String getIconPath()
java.lang.String getLink()
java.lang.String getName()
java.util.Map<java.lang.String,java.lang.String[]> getParameters(CmsWorkplace wp)
wp - the workplace contextjava.lang.String getPath()
float getPosition()
java.lang.String getShortName()
java.lang.String getConfirmationMessage()
java.lang.String getSmallIconPath()
boolean isEnabled(CmsObject cms)
cms - the cms contexttrue if enabledboolean isVisible(CmsObject cms)
cms - the cms contexttrue if visibleboolean isEnabled(CmsWorkplace wp)
wp - the workplace contexttrue if enabledboolean isVisible(CmsWorkplace wp)
wp - the workplace contexttrue if visibleboolean setup(CmsObject cms, CmsToolRootHandler root, java.lang.String resourcePath)
cms - the admin context (at opencms-workplace (re-)initialization time)root - the root contextresourcePath - the resource path of the file/folder to use as admin toolfalse if something goes wrong