Beispiel #1
0
 @Transactional(readOnly = false)
 public void updatePasswordById(Long id, String loginName, String newPassword) {
   userDao.updatePasswordById(entryptPassword(newPassword), id);
   systemRealm.clearCachedAuthorizationInfo(loginName);
 }
Beispiel #2
0
 @Transactional(readOnly = false)
 public void saveUser(User user) {
   userDao.clear();
   userDao.save(user);
   systemRealm.clearCachedAuthorizationInfo(user.getLoginName());
 }