Exemple #1
0
 /**
  * Get the list of all organizationTags selected
  *
  * @return the list of all organizationTags selected
  */
 public List<SelectItem> getOrganizationTagsSelected() {
   ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
   List<Organization> refs = this.getOrganizationTags();
   for (Organization ref : refs) {
     ret.add(new SelectItem(ref, ref.getName()));
   }
   return ret;
 }
Exemple #2
0
 public List<SelectItem> getAllOrganizations() {
   final List<Organization> refs =
       OrganizationManager.getDefault().getAllEntities(null, new SortCriteria("name"));
   final List<SelectItem> ret = new ArrayList<SelectItem>();
   for (Organization ref : refs) {
     ret.add(new SelectItem(ref, ref.getName()));
   }
   return ret;
 }