public static enum Privilege.PredefinedGrant extends Enum<Privilege.PredefinedGrant>
Enum Constant and Description |
---|
ALL
grant: '*' means all events
|
WRITE
grant.
|
Modifier and Type | Method and Description |
---|---|
boolean |
is(String grant) |
String |
toString() |
static Privilege.PredefinedGrant |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Privilege.PredefinedGrant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Privilege.PredefinedGrant ALL
public static final Privilege.PredefinedGrant WRITE
public static Privilege.PredefinedGrant[] values()
for (Privilege.PredefinedGrant c : Privilege.PredefinedGrant.values()) System.out.println(c);
public static Privilege.PredefinedGrant 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 grant)
public String toString()
toString
in class Enum<Privilege.PredefinedGrant>
Copyright © 2023. All rights reserved.