|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserService
User and Authority service interface
| Method Summary | |
|---|---|
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> |
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 |
| Methods inherited from interface org.springframework.security.userdetails.UserDetailsManager |
|---|
changePassword, createUser, deleteUser, updateUser, userExists |
| Method Detail |
|---|
List<User> getUsers()
List<Authority> getAuthorities()
User loadUserByUsername(String username)
throws org.springframework.security.userdetails.UsernameNotFoundException,
org.springframework.dao.DataAccessException
loadUserByUsername in interface org.springframework.security.userdetails.UserDetailsServiceorg.springframework.security.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException
void grantAuthority(String username,
String authority)
username - authority -
IllegalArgumentException - - if the user already has the authority
void revokeAuthority(String username,
String authority)
username - authority -
IllegalArgumentException - - if the user does not hold the authority
void changeUsersPassword(String username,
String newPassword,
String confirmNewPassword)
throws IllegalArgumentException
username - newPassword - as plain textconfirmNewPassword - as plain text
IllegalArgumentException - If the passwords don't match
void changeUsersEmail(String username,
String newEmail)
throws IllegalArgumentException
username - newEmail - as plain text
IllegalArgumentException - 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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||