public UserVO(UserPO po) { id = po.getID(); password = po.getPassword(); authority = po.getAuthority(); name = po.getName(); sex = po.getSex(); job = po.getJob(); hallId = po.getHallId(); }
public UserVO findUser(String known, String info) { UserPO po = dataFactory.getUserdataService().find(known, info); if (po == null) return null; String hallName = apartmentbl.getName(po.getHallId()); return new UserVO( po.getID(), po.getPassword(), po.getAuthority(), po.getName(), po.getSex(), po.getJob(), hallName); }
public boolean delete( String id, String name, String password, String identityID, String institutionID, enumSet.Position work) throws RemoteException { List<UserPO> userList = this.list; UserPO po = new UserPO(id, name, password, identityID, institutionID, work); for (UserPO temp : userList) { if (temp.getId().equals(id) && temp.getName().equals(name)) { po = UserDS.find(identityID); UserDS.delete(po); userList.remove(po); } } return true; }
public UserPO(UserPO po) { id = po.getId(); name = po.getName(); password = po.password; role = po.role; }