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 TypeMethodDescriptionfindGroupsForUser(String username) Find all the group a user is in.booleangroupExists(String name) Check if a group with a given name exists.voidsetGroupDescription(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
Check if a group with a given name exists. -
setGroupDescription
Update the human-readable description of a group. Spring'sGroupManagerhas no equivalent — the description field is Gemma-specific (on theUserGroupentity).- Parameters:
groupName- the group to update (looked up by name).description- new description;nullclears the field.
-