Class CmsGroupStateAction

java.lang.Object
org.opencms.workplace.tools.A_CmsHtmlIconButton
All Implemented Interfaces:
I_CmsListAction, I_CmsListDirectAction, org.opencms.workplace.tools.I_CmsHtmlIconButton

Show diferent states depending on user direct/indirect group assignment.

Since:
6.0.0
  • Constructor Details

    • CmsGroupStateAction

      public CmsGroupStateAction(String id, boolean direct)
      Default constructor.

      Parameters:
      id - the id of the action
      direct - the direct group flag
    • CmsGroupStateAction

      public CmsGroupStateAction(String id, org.opencms.file.CmsObject cms, boolean direct)
      Default constructor.

      Parameters:
      id - the id of the action
      cms - the cms context
      direct - the direct group flag
  • Method Details

    • getCms

      public org.opencms.file.CmsObject getCms()
      Returns the cms context.

      Returns:
      the cms context
    • getUserName

      public String getUserName()
      Returns the user Name.

      Returns:
      the user Name
    • isDirect

      public boolean isDirect()
      Returns the direct group flag.

      Returns:
      the direct group flag
    • isVisible

      public boolean isVisible()
      Specified by:
      isVisible in interface org.opencms.workplace.tools.I_CmsHtmlIconButton
      Overrides:
      isVisible in class org.opencms.workplace.tools.A_CmsHtmlIconButton
      See Also:
      • A_CmsHtmlIconButton.isVisible()
    • setUserName

      public void setUserName(String userName)
      Sets the user Name.

      Parameters:
      userName - the user Name to set
    • setWp

      public void setWp(A_CmsListDialog wp)
      Description copied from interface: I_CmsListAction
      Sets the workplace dialog object.

      Specified by:
      setWp in interface I_CmsListAction
      Overrides:
      setWp in class A_CmsListAction
      Parameters:
      wp - the workplace dialog object
      See Also: