use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class OfferBean method getInteractionss.
/**
* Get the list of all interactionss
*
* @return the list of all interactionss
*/
public List<SelectItem> getInteractionss() {
List<Interaction> refs = InteractionManager.getDefault().getAllEntities(null, new SortCriteria("creationDate"));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
for (Interaction ref : refs) {
ret.add(new SelectItem(ref, ref.getDescription()));
}
return ret;
}
use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class RequestHolidayBean 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;
}
use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class UserHolidaysStateBean method getAll.
public List<UserHolidaysState> getAll() {
List<UserHolidaysState> ret = new ArrayList<UserHolidaysState>();
if (chargeYear == null)
return ret;
UserManager userManager = UserManager.getDefault();
UserSearch searchUser = new UserSearch();
searchUser.setActive(true);
List<User> users = userManager.getAllEntities(searchUser, new SortCriteria(sortColumn, sortAscending));
for (User us : users) {
ret.add(manager.calculateUserHolidaysState(us, this.getChargeYear()));
}
return ret;
}
use of com.autentia.tnt.dao.SortCriteria in project TNTConcept by autentia.
the class TagBean method getOrganizationTagss.
/**
* Get the list of all organizationTagss
*
* @return the list of all organizationTagss
*/
public List<SelectItem> getOrganizationTagss() {
List<Organization> refs = OrganizationManager.getDefault().getAllEntities(null, new SortCriteria("name"));
ArrayList<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 OfferBean method getRoless.
/**
* Get the list of all roless
*
* @return the list of all roless
*/
public List<SelectItem> getRoless() {
List<OfferRole> refs = OfferRoleManager.getDefault().getAllEntities(null, new SortCriteria("name"));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
for (OfferRole ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
Aggregations