Interface BasicAccessControlList

All Superinterfaces:
AccessControlList, Serializable
All Known Implementing Classes:
BasicAccessControlListImpl

public interface BasicAccessControlList
extends Serializable, AccessControlList
This interface describes a control class that makes it easy to find out if a particular User has a given Permission. It also determines if a User has a a particular Role.
Version:
$Id: BasicAccessControlList.java 1845858 2018-11-05 21:14:02Z painter $
Author:
Eric Pugh
  • Method Summary

    Modifier and Type Method Description
    GroupSet getGroups()
    Retrieves all groups for a user
    boolean hasGroup​(String group)
    Checks if the user is assigned a specific Group
    boolean hasGroup​(Group group)
    Checks if the user is assigned a specific Group
  • Method Details

    • getGroups

      GroupSet getGroups()
      Retrieves all groups for a user
      Returns:
      the set of Groups this user has
    • hasGroup

      boolean hasGroup​(Group group)
      Checks if the user is assigned a specific Group
      Parameters:
      group - the Group
      Returns:
      true if the user is assigned to the Group
    • hasGroup

      boolean hasGroup​(String group)
      Checks if the user is assigned a specific Group
      Parameters:
      group - the group name
      Returns:
      trueif the user is assigned the Group.