/** * Get the list of all positionTags selected * * @return the list of all positionTags selected */ public List<SelectItem> getPositionTagsSelected() { ArrayList<SelectItem> ret = new ArrayList<SelectItem>(); List<Position> refs = this.getPositionTags(); for (Position ref : refs) { ret.add(new SelectItem(ref, ref.getName())); } return ret; }
/** * Get the list of all positionTagss * * @return the list of all positionTagss */ public List<SelectItem> getPositionTagss() { List<Position> refs = PositionManager.getDefault().getAllEntities(null, new SortCriteria("name")); ArrayList<SelectItem> ret = new ArrayList<SelectItem>(); for (Position ref : refs) { ret.add(new SelectItem(ref, ref.getName())); } return ret; }
public List<SelectItem> getAllPositions() { final PositionSearch positionSearch = new PositionSearch(); positionSearch.setDeleted(false); final List<Position> refs = PositionManager.getDefault().getAllEntities(positionSearch, new SortCriteria("name")); final List<SelectItem> ret = new ArrayList<SelectItem>(); for (Position ref : refs) { ret.add(new SelectItem(ref, ref.getName())); } return ret; }