@InterfaceStability.Evolving public enum AclOperation extends java.lang.Enum<AclOperation>
Enum Constant and Description |
---|
ALL
ALL operation.
|
ALTER
ALTER operation.
|
ALTER_CONFIGS
ALTER_CONFIGS operation.
|
ANY
In a filter, matches any AclOperation.
|
CLUSTER_ACTION
CLUSTER_ACTION operation.
|
CREATE
CREATE operation.
|
DELETE
DELETE operation.
|
DESCRIBE
DESCRIBE operation.
|
DESCRIBE_CONFIGS
DESCRIBE_CONFIGS operation.
|
IDEMPOTENT_WRITE
IDEMPOTENT_WRITE operation.
|
READ
READ operation.
|
UNKNOWN
Represents any AclOperation which this client cannot understand, perhaps because this
client is too old.
|
WRITE
WRITE 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(java.lang.String str)
Parse the given string as an ACL operation.
|
boolean |
isUnknown()
Return true if this operation is UNKNOWN.
|
static AclOperation |
valueOf(java.lang.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 AclOperation[] values()
for (AclOperation c : AclOperation.values()) System.out.println(c);
public static AclOperation 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 AclOperation fromString(java.lang.String str) throws java.lang.IllegalArgumentException
str
- The string to parse.java.lang.IllegalArgumentException
public static AclOperation fromCode(byte code)
public byte code()
public boolean isUnknown()