/** * 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; }
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; }