@Evolving public enum AclPermissionType extends java.lang.Enum<AclPermissionType>
Enum Constant | Description |
---|---|
ALLOW |
Grants access.
|
ANY |
In a filter, matches any AclPermissionType.
|
DENY |
Disallows access.
|
UNKNOWN |
Represents any AclPermissionType which this client cannot understand,
perhaps because this client is too old.
|
Modifier and Type | Method | Description |
---|---|---|
byte |
code() |
Return the code of this permission type.
|
static AclPermissionType |
fromCode(byte code) |
Return the AclPermissionType with the provided code or `AclPermissionType.UNKNOWN` if one cannot be found.
|
static AclPermissionType |
fromString(java.lang.String str) |
Parse the given string as an ACL permission.
|
boolean |
isUnknown() |
Return true if this permission type is UNKNOWN.
|
static AclPermissionType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static AclPermissionType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AclPermissionType UNKNOWN
public static final AclPermissionType ANY
public static final AclPermissionType DENY
public static final AclPermissionType ALLOW
public static AclPermissionType[] values()
for (AclPermissionType c : AclPermissionType.values()) System.out.println(c);
public static AclPermissionType 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 AclPermissionType fromString(java.lang.String str)
str
- The string to parse.public static AclPermissionType fromCode(byte code)
public byte code()
public boolean isUnknown()