Package org.opencms.workplace.tools
Class CmsOfflineToolHandler
java.lang.Object
org.opencms.workplace.tools.A_CmsToolHandler
org.opencms.workplace.tools.CmsDefaultToolHandler
org.opencms.workplace.tools.CmsOfflineToolHandler
- All Implemented Interfaces:
I_CmsToolHandler
This tool handler disables the tool if in online project.
- Since:
- 6.0.0
-
Field Summary
Fields inherited from class org.opencms.workplace.tools.A_CmsToolHandler
ARG_PARAM_NAME, ARG_PATH_NAME, ARGS_PROPERTY_DEFINITION, ARGUMENT_SEPARATOR, DEFAULT_DISABLED_HELPTEXT, VALUE_SEPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the help text if disabled.boolean
Returns the state of the admin tool for a given cms context.Methods inherited from class org.opencms.workplace.tools.CmsDefaultToolHandler
isVisible
Methods inherited from class org.opencms.workplace.tools.A_CmsToolHandler
getConfirmationMessage, getGroup, getHelpText, getIconPath, getLink, getName, getParameters, getPath, getPosition, getShortName, getSmallIconPath, isEnabled, isVisible, setConfirmationMessage, setDisabledHelpText, setGroup, setHelpText, setIconPath, setLink, setLink, setName, setParameters, setParameterString, setPath, setPosition, setShortName, setSmallIconPath, setup, toString
-
Constructor Details
-
CmsOfflineToolHandler
public CmsOfflineToolHandler()
-
-
Method Details
-
getDisabledHelpText
Description copied from interface:I_CmsToolHandler
Returns the help text if disabled.- Specified by:
getDisabledHelpText
in interfaceI_CmsToolHandler
- Overrides:
getDisabledHelpText
in classA_CmsToolHandler
- Returns:
- the help text if disabled
- See Also:
-
isEnabled
Description copied from interface:I_CmsToolHandler
Returns the state of the admin tool for a given cms context.- Specified by:
isEnabled
in interfaceI_CmsToolHandler
- Overrides:
isEnabled
in classCmsDefaultToolHandler
- Parameters:
cms
- the cms context- Returns:
true
if enabled- See Also:
-