@InterfaceStability.Evolving public enum AclOperation extends Enum<AclOperation>
ALLOW ALL
implies ALLOW
everything
DENY ALL
implies DENY
everything
ALLOW READ
implies ALLOW DESCRIBE
ALLOW WRITE
implies ALLOW DESCRIBE
ALLOW DELETE
implies ALLOW DESCRIBE
ALLOW ALTER
implies ALLOW DESCRIBE
ALLOW ALTER_CONFIGS
implies ALLOW DESCRIBE_CONFIGS
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(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 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.IllegalArgumentException
public static AclOperation fromCode(byte code)
public byte code()
public boolean isUnknown()