Search in sources :

Example 1 with ContractType

use of com.autentia.tnt.businessobject.ContractType in project TNTConcept by autentia.

the class UserBean method getContractTypes.

/**
 * Get the list of all contractTypes
 *
 * @return the list of all contractTypes
 */
public List<SelectItem> getContractTypes() {
    List<ContractType> refs = ContractTypeManager.getDefault().getAllEntities(null, new SortCriteria("name"));
    ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
    for (ContractType ref : refs) {
        ret.add(new SelectItem(ref, ref.getName()));
    }
    return ret;
}
Also used : SortCriteria(com.autentia.tnt.dao.SortCriteria) SelectItem(javax.faces.model.SelectItem) ArrayList(java.util.ArrayList) ContractType(com.autentia.tnt.businessobject.ContractType)

Aggregations

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