Class CmsDirectEditButtonSelection


  • public final class CmsDirectEditButtonSelection
    extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isShowDelete()
      Returns true if the "delete" button should be displayed.
      boolean isShowEdit()
      Returns true if the "edit" button should be displayed.
      boolean isShowNew()
      Returns true if the "new" button should be displayed.
      java.lang.String toString()
      Returns the selected edit options as a String in the form edit|delete|new.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • 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 java.lang.String toString()
        Returns the selected edit options as a String in the form edit|delete|new.

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