org.apache.hadoop.fs.permission
Enum AclEntryType

java.lang.Object
  extended by java.lang.Enum<AclEntryType>
      extended by org.apache.hadoop.fs.permission.AclEntryType
All Implemented Interfaces:
Serializable, Comparable<AclEntryType>

@InterfaceAudience.Public
@InterfaceStability.Evolving
public enum AclEntryType
extends Enum<AclEntryType>

Specifies the type of an ACL entry.


Enum Constant Summary
GROUP
          An ACL entry applied to a specific group.
MASK
          An ACL mask entry.
OTHER
          An ACL entry that applies to all other users that were not covered by one of the more specific ACL entry types.
USER
          An ACL entry applied to a specific user.
 
Method Summary
static AclEntryType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AclEntryType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

USER

public static final AclEntryType 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

public static final AclEntryType 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

public static final AclEntryType 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

public static final AclEntryType OTHER
An ACL entry that applies to all other users that were not covered by one of the more specific ACL entry types.

Method Detail

values

public static AclEntryType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AclEntryType c : AclEntryType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AclEntryType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2014 Apache Software Foundation. All Rights Reserved.