use of com.autentia.tnt.dao.search.PositionSearch in project TNTConcept by autentia.
the class DepartmentBean method getAllPositions.
public List<SelectItem> getAllPositions() {
final PositionSearch notDeletedSearch = new PositionSearch();
notDeletedSearch.setDeleted(false);
final List<Position> refs = PositionManager.getDefault().getAllEntities(notDeletedSearch, new SortCriteria("name"));
final List<SelectItem> ret = new ArrayList<SelectItem>();
for (Position ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
Aggregations