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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the help text if disabled.booleanReturns the state of the admin tool for a given cms context.Methods inherited from class org.opencms.workplace.tools.CmsDefaultToolHandler
isVisibleMethods 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_CmsToolHandlerReturns the help text if disabled.- Specified by:
getDisabledHelpTextin interfaceI_CmsToolHandler- Overrides:
getDisabledHelpTextin classA_CmsToolHandler- Returns:
- the help text if disabled
- See Also:
-
isEnabled
Description copied from interface:I_CmsToolHandlerReturns the state of the admin tool for a given cms context.- Specified by:
isEnabledin interfaceI_CmsToolHandler- Overrides:
isEnabledin classCmsDefaultToolHandler- Parameters:
cms- the cms context- Returns:
trueif enabled- See Also:
-