Package com.eastidea.qaforum.model

Examples of com.eastidea.qaforum.model.Department


    return user;
  }

  public void saveUser(User user, String departmentid, String positionid) {
    if (departmentid != null && !departmentid.equals("")) {
      Department depart = entityManager.find(Department.class, Long
          .valueOf(departmentid));
      user.setDepartment(depart);
    }
    if (positionid != null && !positionid.equals("")) {
      Position pos = entityManager.find(Position.class, Long
View Full Code Here


    entityManager.persist(user);
  }

  public void updateUser(User user, String departmentid, String positionid) {
    if (departmentid != null && !departmentid.equals("")) {
      Department depart = entityManager.find(Department.class, Long
          .valueOf(departmentid));
      user.setDepartment(depart);
    }
    if (positionid != null && !positionid.equals("")) {
      Position pos = entityManager.find(Position.class, Long
View Full Code Here

  public ArrayList<SelectItem> getDepartmentDictionary(){
    ArrayList<SelectItem> dictionary  = new ArrayList<SelectItem>();
   
    List<Department> list = getAllDepartment();
   
    Department department;
    Iterator i = list.iterator();
        while( i.hasNext() )
        {
          department = (Department)i.next();
          dictionary.add( new SelectItem( department.getDepartmentid().toString(),
              department.getName()));
        }
        return dictionary;
  }
View Full Code Here

TOP

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

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.