|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.fs.permission.AclEntry
@InterfaceAudience.Public @InterfaceStability.Evolving public class AclEntry
Defines a single entry in an ACL. An ACL entry has a type (user, group,
mask, or other), an optional name (referring to a specific user or group), a
set of permissions (any combination of read, write and execute), and a scope
(access or default). AclEntry instances are immutable. Use a AclEntry.Builder
to create a new instance.
Method Summary | |
---|---|
static String |
aclSpecToString(List<AclEntry> aclSpec)
Convert a List of AclEntries into a string - the reverse of parseAclSpec. |
boolean |
equals(Object o)
|
String |
getName()
Returns the optional ACL entry name. |
FsAction |
getPermission()
Returns the set of permissions in the ACL entry. |
AclEntryScope |
getScope()
Returns the scope of the ACL entry. |
AclEntryType |
getType()
Returns the ACL entry type. |
int |
hashCode()
|
static AclEntry |
parseAclEntry(String aclStr,
boolean includePermission)
Parses a string representation of an ACL into a AclEntry object. |
static List<AclEntry> |
parseAclSpec(String aclSpec,
boolean includePermission)
Parses a string representation of an ACL spec into a list of AclEntry objects. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public AclEntryType getType()
public String getName()
public FsAction getPermission()
public AclEntryScope getScope()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public static List<AclEntry> parseAclSpec(String aclSpec, boolean includePermission)
aclSpec
- String representation of an ACL spec.includePermission
- for setAcl operations this will be true. i.e. AclSpec should
include permissions.AclEntry
parsedpublic static AclEntry parseAclEntry(String aclStr, boolean includePermission)
aclStr
- String representation of an ACL.includePermission
- for setAcl operations this will be true. i.e. Acl should include
permissions.AclEntry
objectpublic static String aclSpecToString(List<AclEntry> aclSpec)
aclSpec
- List of AclEntries to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |