ScopedAclEntries (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.fs.permission, class: ScopedAclEntries

Package org.apache.hadoop.fs.permission

# Class ScopedAclEntries

java.lang.Object
org.apache.hadoop.fs.permission.ScopedAclEntries

@LimitedPrivate({"HDFS","MapReduce"}) @Unstable public final class ScopedAclEntries extends Object
Groups a list of ACL entries into separate lists for access entries vs. default entries.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ScopedAclEntries(List<AclEntry> aclEntries)`
  Creates a new ScopedAclEntries from the given list.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<AclEntry>`
  `getAccessEntries()`
  Returns access entries.
  `List<AclEntry>`
  `getDefaultEntries()`
  Returns default entries.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ScopedAclEntries

    public ScopedAclEntries(List<AclEntry> aclEntries)
    Creates a new ScopedAclEntries from the given list. It is assumed that the list is already sorted such that all access entries precede all default entries.
    Parameters:
      `aclEntries` - List<AclEntry> to separate

- ## Method Details

  - ### getAccessEntries

    public List<AclEntry> getAccessEntries()
    Returns access entries.
    Returns:
      List<AclEntry> containing just access entries, or an empty list if there are no access entries

  - ### getDefaultEntries

    public List<AclEntry> getDefaultEntries()
    Returns default entries.
    Returns:
      List<AclEntry> containing just default entries, or an empty list if there are no default entries