Class CmsDirectEditButtonSelection

java.lang.Object
org.opencms.workplace.editors.directedit.CmsDirectEditButtonSelection

public final class CmsDirectEditButtonSelection extends Object
Constants to indicate which direct edit buttons should be displayed for a direct edit resource if the user has the permissions.

The actual permission check is done later using CmsDirectEditPermissions.

This button selection is used internally to indicate the buttons that may be displayed. Usually, for an XmlPage only the "edit" button is displayed, while for an XmlContent there may be an "edit", "delete" or "new" button.

Currently there are only constants for thouse button combinations that are actually used in practice. These are EDIT, EDIT_DELETE and EDIT_DELETE_NEW.

Since:
6.2.3
  • Field Details

  • Method Details

    • isShowDelete

      public boolean isShowDelete()
      Returns true if the "delete" button should be displayed.

      Returns:
      true if the "delete" button should be displayed
    • isShowEdit

      public boolean isShowEdit()
      Returns true if the "edit" button should be displayed.

      Returns:
      true if the "edit" button should be displayed
    • isShowNew

      public boolean isShowNew()
      Returns true if the "new" button should be displayed.

      Returns:
      true if the "new" button should be displayed
    • toString

      public String toString()
      Returns the selected edit options as a String in the form edit|delete|new.

      Overrides:
      toString in class Object
      Returns:
      the selected edit options as a String