Exemple #1
0
 /**
  * Get the list of all departmentTags selected
  *
  * @return the list of all departmentTags selected
  */
 public List<SelectItem> getDepartmentTagsSelected() {
   ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
   List<Department> refs = this.getDepartmentTags();
   for (Department ref : refs) {
     ret.add(new SelectItem(ref, ref.getName()));
   }
   return ret;
 }
Exemple #2
0
 public List<SelectItem> getAllDepartments() {
   final List<Department> refs =
       DepartmentManager.getDefault().getAllEntities(null, new SortCriteria("name"));
   final List<SelectItem> ret = new ArrayList<SelectItem>();
   for (Department ref : refs) {
     ret.add(new SelectItem(ref, ref.getName()));
   }
   return ret;
 }