private void loadUnusedRolesIntoCombo() { form.cmbRoleDetail().clear(); AppRoleLiteVoCollection voCollRole = domain.listRolesNotUsedInRoleDisciplineSecurityLevel(); for(AppRoleLiteVo voRole : voCollRole) { form.cmbRoleDetail().newRow(voRole, voRole.getName()); } }
/** * listActiveAppRole */ public ims.admin.vo.AppRoleLiteVoCollection listActiveAppRole() { return AppRoleLiteVoAssembler.createAppRoleLiteVoCollectionFromAppRole(getDomainFactory().listDomainObjects(AppRole.class)).sort(); }
public AppRoleLiteVoCollection listRolesNotUsedInRoleDisciplineSecurityLevel() { String hql = "select aRole from AppRole as aRole where aRole.id not in (select rds.role from RoleDisciplineSecurityLevel rds)"; List lstRoles = getDomainFactory().find(hql); return AppRoleLiteVoAssembler.createAppRoleLiteVoCollectionFromAppRole(lstRoles); }