Search in sources :

Example 1 with OfferRejectReason

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;
}
Also used : SortCriteria(com.autentia.tnt.dao.SortCriteria) OfferRejectReason(com.autentia.tnt.businessobject.OfferRejectReason) SelectItem(javax.faces.model.SelectItem) ArrayList(java.util.ArrayList)

Aggregations

OfferRejectReason (com.autentia.tnt.businessobject.OfferRejectReason)1 SortCriteria (com.autentia.tnt.dao.SortCriteria)1 ArrayList (java.util.ArrayList)1 SelectItem (javax.faces.model.SelectItem)1