Interface ACLEntry

  • All Known Implementing Classes:
    ACLEntryImpl

    public interface ACLEntry

    This interface represents an entry in the Access Control List.

    Author:
    Stefan Guilhen
    • Method Detail

      • getIdentityOrRole

        String getIdentityOrRole()

        Obtains the identity or role for which a permission has been assigned in this entry.

        Returns:
        a String representing the identity or role name.
      • getIdentity

        Identity getIdentity()

        Obtains the Identity for which a permission has been assigned in this entry.

        Returns:
        a reference to the Identity contained in this entry.
      • getPermission

        ACLPermission getPermission()

        Obtains the Permission object held by this entry.

        Returns:
        a reference to the Permission contained in this entry.
      • checkPermission

        boolean checkPermission​(ACLPermission permission)

        Checks if the specified permission is part of the this entry's permission.

        Parameters:
        permission - the ACLPermission to be checked for.
        Returns:
        true if the permission is part of this entry's permission; false otherwise.