use of com.jeeagile.system.entity.AgileSysUser in project jeeagile by jeeagile.
the class AgileSysUserServiceImpl method selectModel.
@Override
public AgileSysUser selectModel(Serializable userId) {
AgileSysUser agileSysUser = this.getById(userId);
agileSysUser.setRoleIdList(this.selectUserRoleIdList(userId));
agileSysUser.setPostIdList(this.selectUserPostIdList(userId));
return agileSysUser;
}
use of com.jeeagile.system.entity.AgileSysUser in project jeeagile by jeeagile.
the class AgileSysUserServiceImpl method resetUserPwd.
@Override
public boolean resetUserPwd(AgileUpdatePwd agileUpdatePwd) {
String userPwd = agileUpdatePwd.getNewPwd();
if (AgileStringUtil.isEmpty(userPwd)) {
userPwd = agileSysConfigService.getDefaultPwd();
}
userPwd = AgileSecurityUtil.encryptPassword(userPwd);
AgileSysUser agileSysUser = new AgileSysUser();
agileSysUser.setId(agileUpdatePwd.getUserId());
agileSysUser.setUserPwd(userPwd);
return this.updateById(agileSysUser);
}
use of com.jeeagile.system.entity.AgileSysUser in project jeeagile by jeeagile.
the class AgileSysUserServiceImpl method changeUserStatus.
@Override
public boolean changeUserStatus(AgileUpdateStatus agileUpdateStatus) {
AgileSysUser agileSysUser = new AgileSysUser();
agileSysUser.setId(agileUpdateStatus.getId());
agileSysUser.setUserStatus(agileUpdateStatus.getStatus());
return this.updateById(agileSysUser);
}
use of com.jeeagile.system.entity.AgileSysUser in project jeeagile by jeeagile.
the class AgileUserDetailsServiceImpl method getUserDataByLoginName.
@Override
public AgileUserData getUserDataByLoginName(String loginName) {
try {
AgileSysUser agileSysUser = this.getAgileSysUser(loginName);
if (agileSysUser == null) {
throw new AgileAuthException("用户《" + loginName + "》不存在,请核实!");
}
this.checkAgileSysUser(agileSysUser);
return getAgileUserData(agileSysUser);
} catch (AgileBaseException ex) {
throw ex;
} catch (Exception ex) {
throw new AgileAuthException("加载用户信息异常!");
}
}
use of com.jeeagile.system.entity.AgileSysUser in project jeeagile by jeeagile.
the class AgileUserDetailsServiceImpl method getUserDataByUserId.
@Override
public AgileBaseUser getUserDataByUserId(String userId) {
try {
AgileSysUser agileSysUser = agileSysUserService.getById(userId);
this.checkAgileSysUser(agileSysUser);
return getAgileUserData(agileSysUserService.getById(userId));
} catch (AgileBaseException ex) {
throw ex;
} catch (Exception ex) {
throw new AgileAuthException("加载用户信息异常!");
}
}
Aggregations