Package io.jmix.core.security
Interface UserManager
- All Known Implementing Classes:
 AbstractDatabaseUserRepository
public interface UserManager
Interface provides API for some actions with users
- 
Method Summary
Modifier and TypeMethodDescriptionvoidchangePassword(String userName, String oldPassword, String newPassword) Changes the password for the specific user.resetPasswords(Set<org.springframework.security.core.userdetails.UserDetails> users) Changes the password for the specific user.voidresetRememberMe(Collection<org.springframework.security.core.userdetails.UserDetails> users) Resets 'remember me' token for the specific user. 
- 
Method Details
- 
changePassword
void changePassword(String userName, @Nullable String oldPassword, @Nullable String newPassword) throws PasswordNotMatchException Changes the password for the specific user.- Parameters:
 userName- - users loginoldPassword- - non encoded old users passwordnewPassword- - non encoded new users password- Throws:
 PasswordNotMatchException- if the oldPassword is not null and the oldPassword does not equal to the current password or if the oldPassword is null and the newPassword does equal the current password
 - 
resetPasswords
Map<org.springframework.security.core.userdetails.UserDetails,String> resetPasswords(Set<org.springframework.security.core.userdetails.UserDetails> users) Changes the password for the specific user.- Parameters:
 users- - users which need reset passwords- Returns:
 - map which contains new password for specific user
 
 - 
resetRememberMe
Resets 'remember me' token for the specific user.- Parameters:
 users- - users which need reset 'remember me' token
 
 -