Class CmsDirectEditButtonSelection
java.lang.Object
org.opencms.workplace.editors.directedit.CmsDirectEditButtonSelection
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final CmsDirectEditButtonSelectionConstant to indicate "show only the edit button".static final CmsDirectEditButtonSelectionConstant to indicate "show the edit and the delete button".static final CmsDirectEditButtonSelectionConstant to indicate "show the edit, the delete and the new button".static final CmsDirectEditButtonSelectionConstant to indicate "show the edit and the delete button".static final CmsDirectEditButtonSelectionConstant to indicate "show only the new button" used on empty lists.static final StringString value that indicates the "delete" button should be displayed.static final StringString value that indicates the "edit" button should be displayed.static final StringString value that indicates the "new" button should be displayed. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the "delete" button should be displayed.booleanReturnstrueif the "edit" button should be displayed.booleanReturnstrueif the "new" button should be displayed.toString()Returns the selected edit options as a String in the formedit|delete|new.
-
Field Details
-
EDIT
Constant to indicate "show only the edit button". -
EDIT_DELETE
Constant to indicate "show the edit and the delete button". -
EDIT_NEW
Constant to indicate "show the edit and the delete button". -
EDIT_DELETE_NEW
Constant to indicate "show the edit, the delete and the new button". -
NEW
Constant to indicate "show only the new button" used on empty lists. -
VALUE_DELETE
String value that indicates the "delete" button should be displayed.- See Also:
-
VALUE_EDIT
String value that indicates the "edit" button should be displayed.- See Also:
-
VALUE_NEW
String value that indicates the "new" button should be displayed.- See Also:
-
-
Method Details
-
isShowDelete
Returnstrueif the "delete" button should be displayed.- Returns:
trueif the "delete" button should be displayed
-
isShowEdit
Returnstrueif the "edit" button should be displayed.- Returns:
trueif the "edit" button should be displayed
-
isShowNew
Returnstrueif the "new" button should be displayed.- Returns:
trueif the "new" button should be displayed
-
toString
Returns the selected edit options as a String in the formedit|delete|new.
-