Interface GroupManager

All Superinterfaces:
org.springframework.security.provisioning.GroupManager
All Known Subinterfaces:
UserManager
All Known Implementing Classes:
UserManagerImpl

public interface GroupManager extends org.springframework.security.provisioning.GroupManager
Extension of GroupManager.
Author:
poirigui
  • Method Summary

    Modifier and Type
    Method
    Description
    Find all the group a user is in.
    boolean
    Check if a group with a given name exists.
    void
    setGroupDescription(String groupName, String description)
    Update the human-readable description of a group.

    Methods inherited from interface org.springframework.security.provisioning.GroupManager

    addGroupAuthority, addUserToGroup, createGroup, deleteGroup, findAllGroups, findGroupAuthorities, findUsersInGroup, removeGroupAuthority, removeUserFromGroup, renameGroup
  • Method Details

    • findGroupsForUser

      Collection<String> findGroupsForUser(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
      Find all the group a user is in.
      Throws:
      org.springframework.security.core.userdetails.UsernameNotFoundException
    • groupExists

      boolean groupExists(String name)
      Check if a group with a given name exists.
    • setGroupDescription

      void setGroupDescription(String groupName, @Nullable String description)
      Update the human-readable description of a group. Spring's GroupManager has no equivalent — the description field is Gemma-specific (on the UserGroup entity).
      Parameters:
      groupName - the group to update (looked up by name).
      description - new description; null clears the field.