@InterfaceStability.Evolving public enum AclOperation extends Enum<AclOperation>
ALLOW ALL implies ALLOW everything DENY ALL implies DENY everything ALLOW READ implies ALLOW DESCRIBEALLOW WRITE implies ALLOW DESCRIBEALLOW DELETE implies ALLOW DESCRIBEALLOW ALTER implies ALLOW DESCRIBEALLOW ALTER_CONFIGS implies ALLOW DESCRIBE_CONFIGS| Enum Constant and Description |
|---|
ALLALL operation. |
ALTERALTER operation. |
ALTER_CONFIGSALTER_CONFIGS operation. |
ANYIn a filter, matches any AclOperation. |
CLUSTER_ACTIONCLUSTER_ACTION operation. |
CREATECREATE operation. |
CREATE_TOKENSCREATE_TOKENS operation. |
DELETEDELETE operation. |
DESCRIBEDESCRIBE operation. |
DESCRIBE_CONFIGSDESCRIBE_CONFIGS operation. |
DESCRIBE_TOKENSDESCRIBE_TOKENS operation. |
IDEMPOTENT_WRITEIDEMPOTENT_WRITE operation. |
READREAD operation. |
UNKNOWNRepresents any AclOperation which this client cannot understand, perhaps because this client is too old. |
WRITEWRITE operation. |
| Modifier and Type | Method and Description |
|---|---|
byte | code()Return the code of this operation. |
static AclOperation | fromCode(byte code)Return the AclOperation with the provided code or `AclOperation.UNKNOWN` if one cannot be found. |
static AclOperation | fromString(String str)Parse the given string as an ACL operation. |
boolean | isUnknown()Return true if this operation is UNKNOWN. |
static AclOperation | valueOf(String name)Returns the enum constant of this type with the specified name. |
static AclOperation[] | values()Returns an array containing the constants of this enum type, in the order they are declared. |
public static final AclOperation UNKNOWN
public static final AclOperation ANY
public static final AclOperation ALL
public static final AclOperation READ
public static final AclOperation WRITE
public static final AclOperation CREATE
public static final AclOperation DELETE
public static final AclOperation ALTER
public static final AclOperation DESCRIBE
public static final AclOperation CLUSTER_ACTION
public static final AclOperation DESCRIBE_CONFIGS
public static final AclOperation ALTER_CONFIGS
public static final AclOperation IDEMPOTENT_WRITE
public static final AclOperation CREATE_TOKENS
public static final AclOperation DESCRIBE_TOKENS
public static AclOperation[] values()
for (AclOperation c : AclOperation.values()) System.out.println(c);
public static AclOperation 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 static AclOperation fromString(String str) throws IllegalArgumentException
str - The string to parse.IllegalArgumentExceptionpublic static AclOperation fromCode(byte code)
public byte code()
public boolean isUnknown()