Package org.apache.hadoop.fs.permission
Enum Class FsAction
- All Implemented Interfaces:
Serializable,Comparable<FsAction>,Constable
File system actions, e.g. read, write, etc.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionAND operation.static FsActiongetFsAction(String permission) Get the FsAction enum for String representation of permissionsbooleanReturn true if this action implies that action.not()NOT operation.OR operation.static FsActionReturns the enum constant of this class with the specified name.static FsAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
EXECUTE
-
WRITE
-
WRITE_EXECUTE
-
READ
-
READ_EXECUTE
-
READ_WRITE
-
ALL
-
-
Field Details
-
SYMBOL
Symbolic representation
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
implies
Return true if this action implies that action.- Parameters:
that- FsAction that.- Returns:
- if implies true,not false.
-
and
AND operation.- Parameters:
that- FsAction that.- Returns:
- FsAction.
-
or
OR operation.- Parameters:
that- FsAction that.- Returns:
- FsAction.
-
not
NOT operation.- Returns:
- FsAction.
-
getFsAction
Get the FsAction enum for String representation of permissions- Parameters:
permission- 3-character string representation of permission. ex: rwx- Returns:
- Returns FsAction enum if the corresponding FsAction exists for permission. Otherwise returns null
-