public enum AccessLevel extends Enum<AccessLevel>
NONE
- neither grants, nor forbids access.VIEW
- grants access to the page in read-only mode.EDIT
- grants access to the page in edit mode: some operations are permitted
(depending on the type of page), but at least modifying the Groovy source code of the page is forbidden.DEVELOP
- grants every permissions except those reserved for the administrator
(superuser), including that of editing the Groovy source code of the page.DENY
- denies access to the page.Modifier and Type | Method and Description |
---|---|
boolean |
isGreaterThanOrEqual(AccessLevel accessLevel) |
static AccessLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessLevel NONE
public static final AccessLevel VIEW
public static final AccessLevel EDIT
public static final AccessLevel DEVELOP
public static final AccessLevel DENY
public static final String copyright
public static AccessLevel[] values()
for (AccessLevel c : AccessLevel.values()) System.out.println(c);
public static AccessLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isGreaterThanOrEqual(AccessLevel accessLevel)