public interface UserService
extends org.springframework.security.provisioning.UserDetailsManager
| Modifier and Type | Method and Description |
|---|---|
void |
changeUsersEmail(String username,
String newEmail)
Allows a specified user's email address.
|
void |
changeUsersPassword(String username,
String newPassword,
String confirmNewPassword)
Allows a specified user's password.
|
void |
createAuthority(Authority newAuthority)
Creates a new Authority on the system
|
void |
disableUser(String username)
Disables the specified user
|
void |
enableUser(String username)
Enables the specified user
|
List<Authority> |
getAuthorities()
Gets all Authorities in the system
|
List<User> |
getUserByFirstnameLike(String firstname)
Retrieves a List of
User whose firstname like firstname% |
List<User> |
getUserBySurnameLike(String surname)
Retrieves a List of
User whose surname like surname% |
List<User> |
getUserByUsernameLike(String username)
Retrieves a List of
User whose username like username% |
List<User> |
getUsers()
Gets all Users in the system
|
void |
grantAuthority(String username,
String authority)
Attempts to grant an authority to a user
|
User |
loadUserByUsername(String username) |
void |
revokeAuthority(String username,
String authority)
Attempts to revoke an authority from a user
|
List<Authority> getAuthorities()
User loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsServiceorg.springframework.security.core.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionvoid grantAuthority(String username, String authority)
username - authority - IllegalArgumentException - - if the user already has the authorityvoid revokeAuthority(String username, String authority)
username - authority - IllegalArgumentException - - if the user does not hold the authorityvoid changeUsersPassword(String username, String newPassword, String confirmNewPassword) throws IllegalArgumentException
username - newPassword - as plain textconfirmNewPassword - as plain textIllegalArgumentException - If the passwords don't matchvoid changeUsersEmail(String username, String newEmail) throws IllegalArgumentException
username - newEmail - as plain textIllegalArgumentException - If the user is not validvoid disableUser(String username)
username - IllegalArgumentException - - if the specified user does not existvoid enableUser(String username)
username - IllegalArgumentException - - if the specified user does not existvoid createAuthority(Authority newAuthority)
newAuthority - List<User> getUserByUsernameLike(String username)
User whose username like username%username - User or null if does not existList<User> getUserByFirstnameLike(String firstname)
User whose firstname like firstname%username - User or null if does not existCopyright © 2007-2016 Ikasan. All Rights Reserved.