public enum ViewManageOperation extends java.lang.Enum<ViewManageOperation> implements PermissionOperation
| Modifier and Type | Method and Description |
|---|---|
MessageKey |
getMessageKey() |
static boolean |
isAccessible(ViewManageOperation operation)
Returns whether the given operation is accessible (view or manage) handles nulls (returning false)
|
boolean |
manage() |
static ViewManageOperation |
of(boolean view,
boolean manage)
For the given view / manage flags, returns the corresponding operation
|
static ViewManageOperation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ViewManageOperation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
boolean |
view() |
public static final ViewManageOperation NONE
public static final ViewManageOperation VIEW
public static final ViewManageOperation MANAGE
public static ViewManageOperation[] values()
for (ViewManageOperation c : ViewManageOperation.values()) System.out.println(c);
public static ViewManageOperation valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static boolean isAccessible(ViewManageOperation operation)
public static ViewManageOperation of(boolean view, boolean manage)
public MessageKey getMessageKey()
getMessageKey in interface HasMessageKeypublic boolean manage()
public boolean view()