use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class OrganizationBean method getAllTags.
public List<SelectItem> getAllTags() {
final List<Tag> refs = TagManager.getDefault().getAllEntities(null, new SortCriteria("id"));
final List<SelectItem> ret = new ArrayList<SelectItem>();
for (Tag 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 OrganizationBean method getCategorys.
/**
* Get the list of all categorys
* @return the list of all categorys
*/
public List<SelectItem> getCategorys() {
List<OrganizationISOCategory> refs = OrganizationISOCategoryManager.getDefault().getAllEntities(null, new SortCriteria("name"));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
for (OrganizationISOCategory 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 OrganizationBean 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 PositionBean method getProvinces.
/**
* Gets all provinces
*
* @return
*/
public List<SelectItem> getProvinces() {
List<Province> refs = ProvinceManager.getDefault().getAllEntities(null, new SortCriteria("name"));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
ret.add(new SelectItem(null, FacesUtils.getMessage("seleccion_sinSeleccion")));
for (Province 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 AdminHolidayBean method getUserRequests.
// Getters to list possible values of related entities
/**
* Get the list of all userRequests
* @return the list of all userRequests
*/
public List<SelectItem> getUserRequests() {
List<User> refs = UserManager.getDefault().getAllEntities(null, new SortCriteria("name"));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
for (User ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
Aggregations