Package io.jmix.core.security
Interface UserManager
- All Known Implementing Classes:
- AbstractDatabaseUserRepository,- DatabaseUserRepository
public interface UserManager
Interface provides API for some actions with users
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidchangePassword(String userName, String oldPassword, String newPassword) Changes the password for the specific user and saves changes to the database immediately.org.springframework.security.core.userdetails.UserDetailschangePassword(String userName, String oldPassword, String newPassword, boolean saveChanges) Changes the password for the specific user.resetPasswords(Set<org.springframework.security.core.userdetails.UserDetails> users) Generates new passwords for passed users and saves changes to the database immediately.resetPasswords(Set<org.springframework.security.core.userdetails.UserDetails> users, boolean saveChanges) Generates new passwords for passed users.voidresetRememberMe(Collection<org.springframework.security.core.userdetails.UserDetails> users) Resets 'remember me' token for the specific user.
- 
Method Details- 
changePassworddefault void changePassword(String userName, @Nullable String oldPassword, @Nullable String newPassword) throws PasswordNotMatchException Changes the password for the specific user and saves changes to the database immediately.- Parameters:
- userName- user login
- oldPassword- non-encoded old user password
- newPassword- non-encoded new user password
- Throws:
- PasswordNotMatchException- if the oldPassword is not- nulland the oldPassword does not equal to the current password or if the oldPassword is- nulland the newPassword does equal the current password
 
- 
changePasswordorg.springframework.security.core.userdetails.UserDetails changePassword(String userName, @Nullable String oldPassword, @Nullable String newPassword, boolean saveChanges) throws PasswordNotMatchException Changes the password for the specific user.- Parameters:
- userName- users login
- oldPassword- non-encoded old user password
- newPassword- non-encoded new user password
- saveChanges- whether to save changes to the database
- Throws:
- PasswordNotMatchException- if the oldPassword is not- nulland the oldPassword does not equal to the current password or if the oldPassword is- nulland the newPassword does equal the current password
 
- 
resetPasswordsdefault Map<org.springframework.security.core.userdetails.UserDetails,String> resetPasswords(Set<org.springframework.security.core.userdetails.UserDetails> users) Generates new passwords for passed users and saves changes to the database immediately.- Parameters:
- users- users which need reset passwords
- Returns:
- map which contains new passwords for the passed users
 
- 
resetPasswordsMap<org.springframework.security.core.userdetails.UserDetails,String> resetPasswords(Set<org.springframework.security.core.userdetails.UserDetails> users, boolean saveChanges) Generates new passwords for passed users.- Parameters:
- users- users which need reset passwords
- saveChanges- whether to save changes to the database
- Returns:
- map which contains new passwords for the passed users
 
- 
resetRememberMeResets 'remember me' token for the specific user.- Parameters:
- users- - users which need reset 'remember me' token
 
 
-