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;
}
Aggregations