|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.workplace.editors.directedit.CmsDirectEditButtonSelection
public final class 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
.
Field Summary | |
---|---|
static CmsDirectEditButtonSelection |
EDIT
Constant to indicate "show only the edit button". |
static CmsDirectEditButtonSelection |
EDIT_DELETE
Constant to indicate "show the edit and the delete button". |
static CmsDirectEditButtonSelection |
EDIT_DELETE_NEW
Constant to indicate "show the edit, the delete and the new button". |
static java.lang.String |
VALUE_DELETE
String value that indicates the "delete" button should be displayed. |
static java.lang.String |
VALUE_EDIT
String value that indicates the "edit" button should be displayed. |
static java.lang.String |
VALUE_NEW
String value that indicates the "new" button should be displayed. |
Method Summary | |
---|---|
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 |
Field Detail |
---|
public static final CmsDirectEditButtonSelection EDIT
public static final CmsDirectEditButtonSelection EDIT_DELETE
public static final CmsDirectEditButtonSelection EDIT_DELETE_NEW
public static final java.lang.String VALUE_DELETE
public static final java.lang.String VALUE_EDIT
public static final java.lang.String VALUE_NEW
Method Detail |
---|
public boolean isShowDelete()
true
if the "delete" button should be displayed.
true
if the "delete" button should be displayedpublic boolean isShowEdit()
true
if the "edit" button should be displayed.
true
if the "edit" button should be displayedpublic boolean isShowNew()
true
if the "new" button should be displayed.
true
if the "new" button should be displayedpublic java.lang.String toString()
edit|delete|new
.
toString
in class java.lang.Object
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |