@InterfaceStability.Evolving public enum AclPermissionType extends Enum<AclPermissionType>
| Enum Constant and Description |
|---|
ALLOWGrants access. |
ANYIn a filter, matches any AclPermissionType. |
DENYDisallows access. |
UNKNOWNRepresents any AclPermissionType which this client cannot understand, perhaps because this client is too old. |
| Modifier and Type | Method and 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(String str)Parse the given string as an ACL permission. |
boolean | isUnknown()Return true if this permission type is UNKNOWN. |
static AclPermissionType | valueOf(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(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 AclPermissionType fromString(String str)
str - The string to parse.public static AclPermissionType fromCode(byte code)
public byte code()
public boolean isUnknown()