Interface Acl

All Superinterfaces:
Acl
All Known Implementing Classes:
AclImpl

@Deprecated
public interface Acl
extends Acl
Deprecated.
use Acl insteaad

Deprecated, interface kept in order to keep backwards compatibility with versions up to 2.11.0.M6. Acl should be used instead.

Since:
2.3
See Also:
Acl
  • Method Details

    • addEntry

      @Deprecated default boolean addEntry​(AclEntry entry)
      Adds an ACL entry to this ACL. An entry associates a principal (e.g., an individual or a group) with a set of permissions. Each principal can have at most one positive ACL entry, specifying permissions to be granted to the principal. If there is already an ACL entry already in the ACL, false is returned.
      Parameters:
      entry - - the ACL entry to be added to this ACL
      Returns:
      true on success, false if an entry of the same type (positive or negative) for the same principal is already present in this ACL
    • entries

      @Deprecated default java.util.Enumeration<AclEntry> entries()
      Deprecated.
      use Acl.aclEntries() instead.
      Returns an enumeration of the entries in this ACL. Each element in the enumeration is of type AclEntry.
      Returns:
      an enumeration of the entries in this ACL.
      See Also:
      Acl.aclEntries()
    • getEntry

      @Deprecated default AclEntry getEntry​(java.security.Principal principal)
      Deprecated.
      Returns an AclEntry for a supplied Principal, or null if the Principal does not have a matching AclEntry.
      Parameters:
      principal - the principal to search for
      Returns:
      the AclEntry associated with the principal, or null
      See Also:
      Acl.getAclEntry(Principal)
    • removeEntry

      @Deprecated default boolean removeEntry​(AclEntry entry)
      Removes an ACL entry from this ACL.
      Parameters:
      entry - the ACL entry to be removed from this ACL
      Returns:
      true on success, false if the entry is not part of this ACL