Package org.opencms.workplace.tools
Interface I_CmsToolHandler
- All Known Implementing Classes:
A_CmsToolHandler
,CmsDefaultToolHandler
,CmsInvisibleToolHandler
,CmsOfflineToolHandler
,CmsOnlyAdminToolHandler
,CmsToolRootHandler
public interface I_CmsToolHandler
Interface for an admin tool handler.
These handlers are created and managed by the
.CmsToolManager
- Since:
- 6.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns an optional confirmation message, displayed in a js confirm dialog.Returns the help text if disabled.getGroup()
Returns the group.Returns the help text.Returns the path to the icon.getLink()
Returns the link to the tool.getName()
Returns the displayed name.Returns the evaluated map of parameters.getPath()
Returns the tool path to install the tool in.float
Returns the relative position in the group.Returns the name for the menu or navbar.Returns the path to an optional small(16x16) icon.boolean
Returns the state of the admin tool for a given cms context.boolean
Returns the state of the admin tool for a given workplace context.boolean
Returns the visibility flag for a given cms context.boolean
Returns the visibility flag for a given workplace context.boolean
setup
(CmsObject cms, CmsToolRootHandler root, String resourcePath) Main method that somehow setups the admin tool handler.
-
Method Details
-
getDisabledHelpText
Returns the help text if disabled.- Returns:
- the help text if disabled
-
getGroup
Returns the group.- Returns:
- the group
-
getHelpText
Returns the help text.- Returns:
- the help text
-
getIconPath
Returns the path to the icon.- Returns:
- the path to the icon
-
getLink
Returns the link to the tool.- Returns:
- the link
-
getName
Returns the displayed name.- Returns:
- the name
-
getParameters
Returns the evaluated map of parameters.- Parameters:
wp
- the workplace context- Returns:
- the parameters map
-
getPath
Returns the tool path to install the tool in.- Returns:
- the path
-
getPosition
float getPosition()Returns the relative position in the group.- Returns:
- the position
-
getShortName
Returns the name for the menu or navbar.- Returns:
- the short name
-
getConfirmationMessage
Returns an optional confirmation message, displayed in a js confirm dialog.- Returns:
- the confirmation message
-
getSmallIconPath
Returns the path to an optional small(16x16) icon.- Returns:
- the path to an optional small(16x16) icon
-
isEnabled
Returns the state of the admin tool for a given cms context.- Parameters:
cms
- the cms context- Returns:
true
if enabled
-
isVisible
Returns the visibility flag for a given cms context.- Parameters:
cms
- the cms context- Returns:
true
if visible
-
isEnabled
Returns the state of the admin tool for a given workplace context.- Parameters:
wp
- the workplace context- Returns:
true
if enabled
-
isVisible
Returns the visibility flag for a given workplace context.- Parameters:
wp
- the workplace context- Returns:
true
if visible
-
setup
Main method that somehow setups the admin tool handler.- Parameters:
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 tool- Returns:
false
if something goes wrong
-