use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class TagBean method getAllContacts.
public List<SelectItem> getAllContacts() {
final List<Contact> refs = ContactManager.getDefault().getAllEntities(null, new SortCriteria("name"));
final List<SelectItem> ret = new ArrayList<SelectItem>();
for (Contact 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 getAllPositions.
public List<SelectItem> getAllPositions() {
List<Position> refs = PositionManager.getDefault().getAllEntities(null, new SortCriteria("id"));
List ret = new ArrayList();
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 AdvancedSearchContactBean method getAllDepartments.
public List<SelectItem> getAllDepartments() {
List<Department> refs = DepartmentManager.getDefault().getAllEntities(null, new SortCriteria("id"));
List ret = new ArrayList();
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 CollaboratorBean method getOrganizations.
/**
* Get the list of all organizations
* @return the list of all organizations
*/
public List<SelectItem> getOrganizations() {
List<Organization> refs = OrganizationManager.getDefault().getAllEntities(null, new SortCriteria("name"));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
ret.add(new SelectItem(null, ""));
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 ContactBean method getAllUsers.
public List<SelectItem> getAllUsers() {
final List<User> refs = UserManager.getDefault().getAllEntities(null, new SortCriteria("name"));
final List<SelectItem> ret = new ArrayList<SelectItem>();
for (User ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
Aggregations