@InterfaceAudience.Public @InterfaceStability.Evolving 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.
|
static List<AclEntry> |
parseAclSpec(String aclSpec,
boolean includePermission)
Parses a string representation of an ACL spec into a list of AclEntry
objects.
|
String |
toString() |
public AclEntryType getType()
public String getName()
public FsAction getPermission()
public AclEntryScope getScope()
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 convertCopyright © 2015 Apache Software Foundation. All rights reserved.