public enum AclAction extends Enum<AclAction>
Enum Constant and Description |
---|
ALL |
EXECUTE |
NONE |
READ |
READ_EXECUTE |
READ_WRITE |
WRITE |
WRITE_EXECUTE |
Modifier and Type | Method and Description |
---|---|
static AclAction |
fromOctal(int perm)
Returns an
AclAction enum value represented by the supplied Octal digit |
static AclAction |
fromRwx(String rwx)
Returns an
AclAction enum value represented by the supplied Unix rwx permission string |
static boolean |
isValidRwx(String input)
Checks to see if the supplied string is a valid unix rwx permission string
|
int |
toOctal()
returns the octal representation of the
AclAction |
static int |
toOctal(AclAction action)
static method that returns the octal representation of the supplied
AclAction |
String |
toString()
returns the Unix rwx string representation of the
AclAction |
static String |
toString(AclAction action)
static method that returns the Unix rwx string representation of the supplied
AclAction |
static AclAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AclAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AclAction NONE
public static final AclAction EXECUTE
public static final AclAction WRITE
public static final AclAction WRITE_EXECUTE
public static final AclAction READ
public static final AclAction READ_EXECUTE
public static final AclAction READ_WRITE
public static final AclAction ALL
public static AclAction[] values()
for (AclAction c : AclAction.values()) System.out.println(c);
public static AclAction 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 String toString()
AclAction
public static String toString(AclAction action)
AclAction
action
- the AclAction
enum value to convert to stringAclAction
public static AclAction fromRwx(String rwx)
AclAction
enum value represented by the supplied Unix rwx permission stringrwx
- the string containing the unix permission in rwx formAclAction
enum value corresponding to the stringpublic static boolean isValidRwx(String input)
input
- the string to checkpublic static AclAction fromOctal(int perm)
AclAction
enum value represented by the supplied Octal digitperm
- the octal digit representing the permissionAclAction
enum value corresponding to the octal digitpublic int toOctal()
AclAction
AclAction
public static int toOctal(AclAction action)
AclAction
action
- the AclAction
enum value to convert to octalAclAction
Copyright © 2019 Microsoft Corporation. All rights reserved.