use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class FinancialRatioBean method getFinancialRatios.
/**
* Get the list of all Financial Ratios
* @return the list of all Financial Ratios
*/
public List<SelectItem> getFinancialRatios() {
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
if (this.getId() != null) {
search.setDifferentId(this.getId());
}
List<FinancialRatio> refs = manager.getAllEntities(search, new SortCriteria(sortColumn, sortAscending));
for (FinancialRatio ref : refs) {
ret.add(new SelectItem(ref, ref.getTitle()));
}
search.unsetDifferentId();
return ret;
}
use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class TagBean method getAllOrganizations.
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;
}
use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class TagBean method getAllDepartments.
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;
}
use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class TagBean method getAllPositions.
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;
}
use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class TagBean method getPositionTagss.
/**
* 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;
}
Aggregations