Class BasicAccessControlListImpl

    • Constructor Detail

      • BasicAccessControlListImpl

        public BasicAccessControlListImpl​(GroupSet groupSet)
        Constructs a new AccessControlList. This class follows 'immutable' pattern - it's objects can't be modified once they are created. This means that the permissions the users have are in effect form the moment they log in to the moment they log out, and changes made to the security settings in that time are not reflected in the state of this object. If you need to reset an user's permissions you need to invalidate his session.
        The objects that constructs an AccessControlList must supply hashtables of role/permission sets keyed with group objects.
        Parameters:
        groupSet - a hashtable containing GroupSet objects
    • Method Detail

      • hasGroup

        public boolean hasGroup​(Group group)
        Checks if the user is assigned a specific Group
        Specified by:
        hasGroup in interface BasicAccessControlList
        Parameters:
        group - the Group
        Returns:
        true if the user is assigned the Group
      • hasGroup

        public boolean hasGroup​(String group)
        Checks if the user is assigned a specific Group
        Specified by:
        hasGroup in interface BasicAccessControlList
        Parameters:
        group - the Group name
        Returns:
        true if the user is assigned the Group