use of com.autentia.tnt.businessobject.OfferRejectReason in project TNTConcept by autentia.
the class OfferBean method getOfferRejectReasons.
/**
* Get the list of all offerRejectReasons
*
* @return the list of all offerRejectReasons
*/
public List<SelectItem> getOfferRejectReasons() {
List<OfferRejectReason> refs = OfferRejectReasonManager.getDefault().getAllEntities(null, new SortCriteria("title"));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
for (OfferRejectReason ref : refs) {
ret.add(new SelectItem(ref, ref.getTitle()));
}
// AƱadiendo el campo vacio
ret.add(0, new SelectItem(""));
return ret;
}
Aggregations