use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class TagBean method getDepartmentTagss.
/**
* Get the list of all departmentTagss
*
* @return the list of all departmentTagss
*/
public List<SelectItem> getDepartmentTagss() {
List<Department> refs = DepartmentManager.getDefault().getAllEntities(null, new SortCriteria("name"));
ArrayList<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 CommissioningBean method getProjects.
/**
* Get the list of all projects
*
* @return the list of all projects
*/
public List<SelectItem> getProjects() {
List<Project> refs = ProjectManager.getDefault().getAllEntities(null, new SortCriteria("name"));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
for (Project 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 CommissioningBean method getAllCollaborators.
public List<SelectItem> getAllCollaborators() {
final List<Collaborator> refs = CollaboratorManager.getDefault().getAllEntities(null, new SortCriteria("insertDate"));
final List<SelectItem> ret = new ArrayList<SelectItem>();
for (Collaborator 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 AdvancedSearchContactBean method getAllOrganizations.
public List<SelectItem> getAllOrganizations() {
List<Organization> refs = OrganizationManager.getDefault().getAllEntities(null, new SortCriteria("id"));
List ret = new ArrayList();
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 OrganizationBean method getProvinces.
/**
* Get the list of all provinces
* @return the list of all provinces
*/
public List<SelectItem> getProvinces() {
List<Province> refs = ProvinceManager.getDefault().getAllEntities(null, new SortCriteria("name"));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
for (Province ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
Aggregations