Package org.apache.hadoop.fs.permission
Enum Class AclEntryType
- All Implemented Interfaces:
Serializable,Comparable<AclEntryType>,Constable
Specifies the type of an ACL entry.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiontoString()Returns a string representation guaranteed to be stable across versions to satisfy backward compatibility requirements, such as for shell command output or serialization.static AclEntryTypeReturns the enum constant of this class with the specified name.static AclEntryType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USER
An ACL entry applied to a specific user. These ACL entries can be unnamed, which applies to the file owner, or named, which applies to the specific named user. -
GROUP
An ACL entry applied to a specific group. These ACL entries can be unnamed, which applies to the file's group, or named, which applies to the specific named group. -
MASK
An ACL mask entry. Mask entries are unnamed. During permission checks, the mask entry interacts with all ACL entries that are members of the group class. This consists of all named user entries, the unnamed group entry, and all named group entries. For each such entry, any permissions that are absent from the mask entry are removed from the effective permissions used during the permission check. -
OTHER
An ACL entry that applies to all other users that were not covered by one of the more specific ACL entry types.
-
-
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
-
toString
- Overrides:
toStringin classEnum<AclEntryType>
-
toStringStable
Returns a string representation guaranteed to be stable across versions to satisfy backward compatibility requirements, such as for shell command output or serialization.- Returns:
- stable, backward compatible string representation
-