public AppRoleShortVoCollection listRoles() { StringBuilder hql = new StringBuilder(); hql.append(" from AppRole appR where appR.isActive = 1"); return AppRoleShortVoAssembler.createAppRoleShortVoCollectionFromAppRole(getDomainFactory().find(hql.toString())).sort(); }
public AppRoleShortVoCollection listRoles() { String query = "SELECT role FROM AppRole AS role WHERE role.isActive = 1 ORDER BY UPPER(role.name) ASC"; return AppRoleShortVoAssembler.createAppRoleShortVoCollectionFromAppRole(getDomainFactory().find(query)); }
public AppRoleShortVoCollection listRoles() { DomainFactory factory = getDomainFactory(); return AppRoleShortVoAssembler.createAppRoleShortVoCollectionFromAppRole(factory.listDomainObjects(AppRole.class)).sort(); }
public AppRoleShortVoCollection getAppRoles() { DomainFactory factory = getDomainFactory(); return AppRoleShortVoAssembler.createAppRoleShortVoCollectionFromAppRole(factory.listDomainObjects(AppRole.class)).sort(); }