Пример #1
0
 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();
 }
Пример #2
0
 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);
 }
Пример #3
0
 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;
 }
Пример #4
0
 public UserPO(UserPO po) {
   id = po.getId();
   name = po.getName();
   password = po.password;
   role = po.role;
 }