Package com.eastidea.qaforum.model

Examples of com.eastidea.qaforum.model.User


   *
   */
  private static final long serialVersionUID = -7774827458593812097L;

  public User getUser(Long userid) {
    User user = entityManager.find(User.class, Long.valueOf(userid));
    return user;
  }
View Full Code Here


      Customer customer = entityManager.find(Customer.class, Long
          .valueOf(customerid));
      project.setCustomer(customer);
    }
    if (pmid != null && !pmid.equals("")) {
      User user = entityManager.find(User.class, Long.valueOf(pmid));
      project.setPm(user);
    }
    if (dmid != null && !dmid.equals("")) {
      User user = entityManager.find(User.class, Long
          .valueOf(dmid));
      project.setDm(user);
    }
    if (tmid != null && !tmid.equals("")) {
      User user = entityManager.find(User.class, Long.valueOf(tmid));
      project.setTm(user);
    }
   
    Map phaseMap = AppConstantImpl.getInstance().getPhaseMap();
    Iterator iterator = phaseMap.keySet().iterator();
View Full Code Here

      project.setCustomer(customer);
    }
    else
      project.setCustomer(null);
    if (pmid != null && !pmid.equals("")) {
      User user = entityManager.find(User.class, Long.valueOf(pmid));
      project.setPm(user);
    }
    else
      project.setPm(null);
    if (dmid != null && !dmid.equals("")) {
      User user = entityManager.find(User.class, Long
          .valueOf(dmid));
      project.setDm(user);
    }
    else
      project.setDm(null);
    if (tmid != null && !tmid.equals("")) {
      User user = entityManager.find(User.class, Long.valueOf(tmid));
      project.setTm(user);
    }
    else
      project.setTm(null);
View Full Code Here

    String rs = "";
    int i = 0;
    if (!list.isEmpty()) {
      rs += "(";
      while (iterator.hasNext()) {
        User user = (User)iterator.next();
        if (i > 0)
          rs += ", ";
        rs += user.getUserid();
        i++;
      }
      rs += ")";
    }
    return rs;
View Full Code Here

   */
  private static final long serialVersionUID = 461840508686233090L;
  @In(value = "userMaintDao", create = true)
  private UserMaintDao userMaintDao;
  public User getUser(Long userid) {
    User user = userMaintDao.getUser(userid);
    return user;
  }
View Full Code Here

        .createQuery("select u from User u where U.department.name = 'DEV' order by u.englishName");
    List resultList = query.getResultList();
    List<User> devAll = resultList;

    LinkedHashSet<User> dictionary = new LinkedHashSet<User>();
    User user;
    Iterator<User> i = devAll.iterator();
    while (i.hasNext()) {
      user = i.next();
      if (!devInProject.contains(user))
        dictionary.add(user);
View Full Code Here

  public void delDev(Long devid, Long projectid) {
    Project project = getProjectWithDevItems(projectid);
    Set<User> devItems = project.getDevItems();
    Iterator iterator = devItems.iterator();
    while (iterator.hasNext()) {
      User user = (User) iterator.next();
      if (devid.longValue() == user.getUserid().longValue()) {
        devItems.remove(user);
        break;
      }
    }
    computerDevCount(project);
View Full Code Here

      .createQuery("select u from User u where U.department.name = 'QA' order by u.englishName");
    List resultList = query.getResultList();
    List<User> qaAll = resultList;

    LinkedHashSet<User> dictionary = new LinkedHashSet<User>();
    User user;
    Iterator<User> i = qaAll.iterator();
    while (i.hasNext()) {
      user = i.next();
      if (!qaInProject.contains(user))
        dictionary.add(user);
View Full Code Here

  public void delQa(Long qaid, Long projectid) {
    Project project = getProjectWithQaItems(projectid);
    Set qaItems = project.getQaItems();
    Iterator iterator = qaItems.iterator();
    while (iterator.hasNext()) {
      User user = (User) iterator.next();
      if (qaid.longValue() == user.getUserid().longValue()) {
        qaItems.remove(user);
        break;
      }
    }
    computerQaCount(project);
View Full Code Here

  public ArrayList<SelectItem> getPmDictionary(){
    ArrayList<SelectItem> dictionary  = new ArrayList<SelectItem>();
   
    List<User> list = actorMaintDao.getAllPms();
   
    User user;
    Iterator i = list.iterator();
        while( i.hasNext() )
        {
          user = (User)i.next();
          dictionary.add( new SelectItem( user.getUserid().toString(),
              user.getEnglishName()));
        }
        return dictionary;
  }
View Full Code Here

TOP

Related Classes of com.eastidea.qaforum.model.User

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.