Interface DynamicRole

    • Method Detail

      • setPermissions

        void setPermissions​(PermissionSet permissionSet)
        Set the permission that are part of this role
        Parameters:
        permissionSet - a set of permissions
      • setPermissionsAsSet

        <T extends Permission> void setPermissionsAsSet​(Set<T> permissions)
        Set the permission that are part of this role as Set
        Parameters:
        permissions - a set of permissions
      • addPermission

        void addPermission​(Permission permission)
        This method should only be used by a RoleManager. Not directly.
        Parameters:
        permission - the Permission to add
      • removePermission

        void removePermission​(Permission permission)
        This method should only be used by a RoleManager. Not directly.
        Parameters:
        permission - the Permission to remove
      • getGroups

        GroupSet getGroups()
        Get the groups this role belongs to
        Returns:
        a set of groups
      • setGroups

        void setGroups​(GroupSet groups)
        Set the groups this role belongs to
        Parameters:
        groups - the set of groups
      • removeGroup

        void removeGroup​(Group group)
        This method should only be used by a RoleManager. Not directly.
        Parameters:
        group - the Group to remove
      • addGroup

        void addGroup​(Group group)
        This method should only be used by a RoleManager. Not directly.
        Parameters:
        group - the Group to add
      • setGroupsAsSet

        <T extends Group> void setGroupsAsSet​(Set<T> groups)
        Set the groups this role belongs to as a Set
        Parameters:
        groups - the set of groups
      • getGroupsAsSet

        <T extends GroupSet<T> getGroupsAsSet()
        Get the groups this role belongs to as a Set
        Returns:
        a set of groups