Interface UserManager
-
- All Superinterfaces:
org.springframework.security.provisioning.GroupManager
,org.springframework.security.provisioning.UserDetailsManager
,org.springframework.security.core.userdetails.UserDetailsService
,gemma.gsec.authentication.UserManager
- All Known Implementing Classes:
UserManagerImpl
public interface UserManager extends gemma.gsec.authentication.UserManager
Overrides gsec's UserManager to provide Gemma-specific types.- Author:
- poirigui
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
changePassword(String oldPassword, String newPassword)
String
changePasswordForUser(String email, String username, String newPassword)
void
createUser(org.springframework.security.core.userdetails.UserDetails user)
void
deleteUser(String username)
gemma.gsec.model.User
findbyEmail(String emailAddress)
User
findByEmail(String s)
User
findByUserName(String s)
UserGroup
findGroupByName(String s)
Collection<String>
findGroupsForUser(String username)
User
getCurrentUser()
Collection<User>
loadAll()
void
updateUser(org.springframework.security.core.userdetails.UserDetails user)
void
updateUserGroups(org.springframework.security.core.userdetails.UserDetails user, Collection<String> groups)
Update the groups a user belong to.boolean
userExists(String username)
boolean
userWithEmailExists(String emailAddress)
boolean
validateSignupToken(String username, String key)
-
Methods inherited from interface org.springframework.security.provisioning.GroupManager
addGroupAuthority, addUserToGroup, createGroup, deleteGroup, findAllGroups, findGroupAuthorities, findUsersInGroup, removeGroupAuthority, removeUserFromGroup, renameGroup
-
-
-
-
Method Detail
-
findByEmail
@Secured({"GROUP_USER","RUN_AS_ADMIN"}) User findByEmail(String s) throws org.springframework.security.core.userdetails.UsernameNotFoundException
- Specified by:
findByEmail
in interfacegemma.gsec.authentication.UserManager
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
findbyEmail
@Secured({"GROUP_USER","RUN_AS_ADMIN"}) gemma.gsec.model.User findbyEmail(String emailAddress)
- Specified by:
findbyEmail
in interfacegemma.gsec.authentication.UserManager
-
findByUserName
User findByUserName(String s) throws org.springframework.security.core.userdetails.UsernameNotFoundException
- Specified by:
findByUserName
in interfacegemma.gsec.authentication.UserManager
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
findGroupByName
UserGroup findGroupByName(String s)
- Specified by:
findGroupByName
in interfacegemma.gsec.authentication.UserManager
-
findGroupsForUser
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","RUN_AS_USER"}) Collection<String> findGroupsForUser(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
- Specified by:
findGroupsForUser
in interfacegemma.gsec.authentication.UserManager
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
userWithEmailExists
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","RUN_AS_ADMIN"}) boolean userWithEmailExists(String emailAddress)
- Specified by:
userWithEmailExists
in interfacegemma.gsec.authentication.UserManager
-
getCurrentUser
User getCurrentUser()
- Specified by:
getCurrentUser
in interfacegemma.gsec.authentication.UserManager
-
loadAll
@Secured("GROUP_ADMIN") Collection<User> loadAll()
- Specified by:
loadAll
in interfacegemma.gsec.authentication.UserManager
-
userExists
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","RUN_AS_ADMIN"}) boolean userExists(String username)
- Specified by:
userExists
in interfaceorg.springframework.security.provisioning.UserDetailsManager
-
createUser
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","RUN_AS_ADMIN"}) void createUser(org.springframework.security.core.userdetails.UserDetails user)
- Specified by:
createUser
in interfaceorg.springframework.security.provisioning.UserDetailsManager
-
updateUser
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","RUN_AS_ADMIN"}) void updateUser(org.springframework.security.core.userdetails.UserDetails user)
- Specified by:
updateUser
in interfaceorg.springframework.security.provisioning.UserDetailsManager
-
updateUserGroups
@Secured("GROUP_ADMIN") void updateUserGroups(org.springframework.security.core.userdetails.UserDetails user, Collection<String> groups)
Update the groups a user belong to.
-
deleteUser
@Secured("GROUP_ADMIN") void deleteUser(String username)
- Specified by:
deleteUser
in interfaceorg.springframework.security.provisioning.UserDetailsManager
-
changePasswordForUser
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","RUN_AS_ADMIN"}) String changePasswordForUser(String email, String username, String newPassword)
- Specified by:
changePasswordForUser
in interfacegemma.gsec.authentication.UserManager
-
changePassword
@Secured("GROUP_USER") void changePassword(String oldPassword, String newPassword)
- Specified by:
changePassword
in interfaceorg.springframework.security.provisioning.UserDetailsManager
-
-