Class DynamicRoleImpl

    • Constructor Detail

      • DynamicRoleImpl

        public DynamicRoleImpl()
    • Method Detail

      • getPermissionsAsSet

        public <T extends PermissionSet<T> getPermissionsAsSet()
        Get the permission that are part of this role as Set
        Specified by:
        getPermissionsAsSet in interface DynamicRole
        Returns:
        a set of permissions
      • setPermissions

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

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

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

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

        public GroupSet getGroups()
        Get the groups this role belongs to
        Specified by:
        getGroups in interface DynamicRole
        Returns:
        a set of groups
      • setGroups

        public void setGroups​(GroupSet groupSet)
        Set the groups this role belongs to
        Specified by:
        setGroups in interface DynamicRole
        Parameters:
        groupSet - the set of groups
      • removeGroup

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

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

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

        public <T extends GroupSet<T> getGroupsAsSet()
        Get the groups this role belongs to as a Set
        Specified by:
        getGroupsAsSet in interface DynamicRole
        Returns:
        a set of groups