use of com.autentia.tnt.businessobject.Role in project TNTConcept by autentia.
the class UserBean method getRoles.
// Getters to list possible values of related entities
/**
* Get the list of all roles
*
* @return the list of all roles
*/
public List<SelectItem> getRoles() {
List<Role> refs = RoleManager.getDefault().getAllEntities(null, new SortCriteria("name"));
ArrayList<SelectItem> ret = new ArrayList<SelectItem>();
for (Role ref : refs) {
ret.add(new SelectItem(ref, ref.getName()));
}
return ret;
}
Aggregations