public static enum Privilege.PredefinedRole extends Enum<Privilege.PredefinedRole>
| Enum Constant and Description |
|---|
ANY_USER
to: 'any' means all roles are accepted
|
AUTHENTICATED_USER
to: 'authenticated-user' means all authenticated users are accepted
|
SYSTEM_USER
to: 'system-user' is for technical users
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
is(String role) |
String |
toString() |
static Privilege.PredefinedRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Privilege.PredefinedRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Privilege.PredefinedRole ANY_USER
public static final Privilege.PredefinedRole AUTHENTICATED_USER
public static final Privilege.PredefinedRole SYSTEM_USER
public static Privilege.PredefinedRole[] values()
for (Privilege.PredefinedRole c : Privilege.PredefinedRole.values()) System.out.println(c);
public static Privilege.PredefinedRole 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 is(String role)
public String toString()
toString in class Enum<Privilege.PredefinedRole>Copyright © 2021. All rights reserved.