Class CmsContentToolHandler

java.lang.Object
org.opencms.workplace.tools.A_CmsToolHandler
org.opencms.workplace.tools.CmsDefaultToolHandler
org.opencms.workplace.tools.CmsOfflineToolHandler
org.opencms.workplace.tools.content.CmsContentToolHandler
All Implemented Interfaces:
org.opencms.workplace.tools.I_CmsToolHandler

public class CmsContentToolHandler extends org.opencms.workplace.tools.CmsOfflineToolHandler
Element content tool handler that hides the element tools if the current user has not the needed privileges.

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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isEnabled(org.opencms.file.CmsObject cms)
     
    boolean
    isVisible(org.opencms.file.CmsObject cms)
     

    Methods inherited from class org.opencms.workplace.tools.CmsOfflineToolHandler

    getDisabledHelpText

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • isEnabled

      public boolean isEnabled(org.opencms.file.CmsObject cms)
      Specified by:
      isEnabled in interface org.opencms.workplace.tools.I_CmsToolHandler
      Overrides:
      isEnabled in class org.opencms.workplace.tools.CmsOfflineToolHandler
      See Also:
      • I_CmsToolHandler.isEnabled(org.opencms.file.CmsObject)
    • isVisible

      public boolean isVisible(org.opencms.file.CmsObject cms)
      Specified by:
      isVisible in interface org.opencms.workplace.tools.I_CmsToolHandler
      Overrides:
      isVisible in class org.opencms.workplace.tools.CmsDefaultToolHandler
      See Also:
      • I_CmsToolHandler.isVisible(org.opencms.file.CmsObject)