@InterfaceAudience.Public @InterfaceStability.Stable public class AclEntry extends Object
AclEntry.Builder
to create a new instance.Modifier and Type | Method and Description |
---|---|
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.
The expected format of ACL entries in the string parameter is the same format produced by the toStringStable() method. |
static List<AclEntry> |
parseAclSpec(String aclSpec,
boolean includePermission)
Parses a string representation of an ACL spec into a list of AclEntry
objects.
|
String |
toString() |
String |
toStringStable()
Returns a string representation guaranteed to be stable across versions to
satisfy backward compatibility requirements, such as for shell command
output or serialization.
|
public AclEntryType getType()
public String getName()
public FsAction getPermission()
public AclEntryScope getScope()
public String toStringStable()
parseAclSpec(String, boolean)
and
parseAclEntry(String, boolean)
methods.public static List<AclEntry> parseAclSpec(String aclSpec, boolean includePermission)
toStringStable()
method.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)
toStringStable()
method.aclStr
- String representation of an ACL.includePermission
- for setAcl operations this will be true. i.e. Acl should include
permissions.AclEntry
objectCopyright © 2019 Apache Software Foundation. All rights reserved.