@Public
@Stable
public class AclEntry
extends java.lang.Object
AclEntry.Builder
to create a new instance.| Modifier and Type | Class | Description |
|---|---|---|
static class |
AclEntry.Builder |
Builder for creating new AclEntry instances.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String |
aclSpecToString(java.util.List<AclEntry> aclSpec) |
Convert a List of AclEntries into a string - the reverse of parseAclSpec.
|
boolean |
equals(java.lang.Object o) |
|
java.lang.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(java.lang.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 java.util.List<AclEntry> |
parseAclSpec(java.lang.String aclSpec,
boolean includePermission) |
Parses a string representation of an ACL spec into a list of AclEntry
objects.
|
java.lang.String |
toString() |
|
java.lang.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 java.lang.String getName()
public FsAction getPermission()
public AclEntryScope getScope()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object@Unstable public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringStable()
parseAclSpec(String, boolean) and
parseAclEntry(String, boolean) methods.public static java.util.List<AclEntry> parseAclSpec(java.lang.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(java.lang.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 objectpublic static java.lang.String aclSpecToString(java.util.List<AclEntry> aclSpec)
aclSpec - List of AclEntries to convertCopyright © 2008–2025 Apache Software Foundation. All rights reserved.