@InterfaceAudience.Public @InterfaceStability.Stable public enum FsAction extends Enum<FsAction>
Enum Constant and Description |
---|
ALL |
EXECUTE |
NONE |
READ |
READ_EXECUTE |
READ_WRITE |
WRITE |
WRITE_EXECUTE |
Modifier and Type | Method and Description |
---|---|
FsAction |
and(FsAction that)
AND operation.
|
static FsAction |
getFsAction(String permission)
Get the FsAction enum for String representation of permissions
|
boolean |
implies(FsAction that)
Return true if this action implies that action.
|
FsAction |
not()
NOT operation.
|
FsAction |
or(FsAction that)
OR operation.
|
static FsAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FsAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FsAction WRITE_EXECUTE
public static final FsAction READ_EXECUTE
public static final FsAction READ_WRITE
public static FsAction[] values()
for (FsAction c : FsAction.values()) System.out.println(c);
public static FsAction 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 boolean implies(FsAction that)
that
- public static FsAction getFsAction(String permission)
permission
- 3-character string representation of permission. ex: rwxCopyright © 2017 Apache Software Foundation. All Rights Reserved.