Package org.apache.kafka.common.acl
Enum AclOperation
- java.lang.Object
- 
- java.lang.Enum<AclOperation>
- 
- org.apache.kafka.common.acl.AclOperation
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<AclOperation>
 
 @Evolving public enum AclOperation extends Enum<AclOperation> Represents an operation which an ACL grants or denies permission to perform. Some operations imply other operations:- ALLOW ALLimplies- ALLOWeverything
- DENY ALLimplies- DENYeverything
- ALLOW READimplies- ALLOW DESCRIBE
- ALLOW WRITEimplies- ALLOW DESCRIBE
- ALLOW DELETEimplies- ALLOW DESCRIBE
- ALLOW ALTERimplies- ALLOW DESCRIBE
- ALLOW ALTER_CONFIGSimplies- ALLOW DESCRIBE_CONFIGS
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant 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.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytecode()Return the code of this operation.static AclOperationfromCode(byte code)Return the AclOperation with the provided code or `AclOperation.UNKNOWN` if one cannot be found.static AclOperationfromString(String str)Parse the given string as an ACL operation.booleanisUnknown()Return true if this operation is UNKNOWN.static AclOperationvalueOf(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.
 
- 
- 
- 
Enum Constant Detail- 
UNKNOWNpublic static final AclOperation UNKNOWN Represents any AclOperation which this client cannot understand, perhaps because this client is too old.
 - 
ANYpublic static final AclOperation ANY In a filter, matches any AclOperation.
 - 
ALLpublic static final AclOperation ALL ALL operation.
 - 
READpublic static final AclOperation READ READ operation.
 - 
WRITEpublic static final AclOperation WRITE WRITE operation.
 - 
CREATEpublic static final AclOperation CREATE CREATE operation.
 - 
DELETEpublic static final AclOperation DELETE DELETE operation.
 - 
ALTERpublic static final AclOperation ALTER ALTER operation.
 - 
DESCRIBEpublic static final AclOperation DESCRIBE DESCRIBE operation.
 - 
CLUSTER_ACTIONpublic static final AclOperation CLUSTER_ACTION CLUSTER_ACTION operation.
 - 
DESCRIBE_CONFIGSpublic static final AclOperation DESCRIBE_CONFIGS DESCRIBE_CONFIGS operation.
 - 
ALTER_CONFIGSpublic static final AclOperation ALTER_CONFIGS ALTER_CONFIGS operation.
 - 
IDEMPOTENT_WRITEpublic static final AclOperation IDEMPOTENT_WRITE IDEMPOTENT_WRITE operation.
 - 
CREATE_TOKENSpublic static final AclOperation CREATE_TOKENS CREATE_TOKENS operation.
 - 
DESCRIBE_TOKENSpublic static final AclOperation DESCRIBE_TOKENS DESCRIBE_TOKENS operation.
 
- 
 - 
Method Detail- 
valuespublic static AclOperation[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AclOperation c : AclOperation.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static AclOperation valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
fromStringpublic static AclOperation fromString(String str) throws IllegalArgumentException Parse the given string as an ACL operation.- Parameters:
- str- The string to parse.
- Returns:
- The AclOperation, or UNKNOWN if the string could not be matched.
- Throws:
- IllegalArgumentException
 
 - 
fromCodepublic static AclOperation fromCode(byte code) Return the AclOperation with the provided code or `AclOperation.UNKNOWN` if one cannot be found.
 - 
codepublic byte code() Return the code of this operation.
 - 
isUnknownpublic boolean isUnknown() Return true if this operation is UNKNOWN.
 
- 
 
-