| | |
| | | smUserDTO.setLastModifier(loginUserId); |
| | | smUserDTO.setOid(ObjectUtility.getNewObjectID36()); |
| | | UserInfo userInfo = changeSmUserDTOToUserInfo(smUserDTO); |
| | | //管理员添加的用户初始密码修改时间都应该为0,因为涉及到后面用户首次登录自己修改密码 |
| | | userInfo.pwdUpdateTime = 0; |
| | | UserEntityInfo userEntityInfo = new UserEntityInfo(loginUserId, ""); |
| | | String oid = platformClientUtil.getFrameworkService().saveUser(userInfo, userEntityInfo); |
| | | if (Func.isEmpty(oid)) { |
| | |
| | | } catch (PLException e) { |
| | | // TODO Auto-generated catch block |
| | | e.printStackTrace(); |
| | | throw new VciBaseException("检查密码策略符合情况失败!2"); |
| | | throw new VciBaseException("检查密码策略符合情况失败!"); |
| | | } |
| | | } |
| | | |
| | |
| | | return userNameList; |
| | | } |
| | | |
| | | /** |
| | | * 使用当前用户的类型查询用户 |
| | | * @return |
| | | * @throws VciBaseException |
| | | */ |
| | | @Override |
| | | public List<SmUserVO> listUserByUserType() throws PLException { |
| | | try { |
| | | UserInfo[] userInfo = platformClientUtil.getFrameworkService().fetchUserInfoByType(Short.parseShort(WebUtil.getCurrentUserSessionInfo().getUsertype())); |
| | | return userInfoArr2VO(userInfo); |
| | | } catch (PLException e) { |
| | | throw new VciBaseException("登录时,获取用户信息失败:"+e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | } |