public AppNavShortVoCollection listNavigations(Boolean onlyActive) { String query = "from AppNavigation as an"; ArrayList<String> params = new ArrayList<String>(); ArrayList<Object> values = new ArrayList<Object>(); if (onlyActive){ query+=" where (an.isActive = :activeOnly)"; params.add("activeOnly"); values.add(onlyActive); } return AppNavShortVoAssembler.createAppNavShortVoCollectionFromAppNavigation(getDomainFactory().find(query,params,values)); }
public AppNavShortVoCollection listNavigations(Boolean onlyActive) { String query = "from AppNavigation as an"; ArrayList<String> params = new ArrayList<String>(); ArrayList<Object> values = new ArrayList<Object>(); if (onlyActive){ query+=" where (an.isActive = :activeOnly)"; params.add("activeOnly"); values.add(onlyActive); } query += " order by upper(an.navigationName) asc"; //WDEV-20232 return AppNavShortVoAssembler.createAppNavShortVoCollectionFromAppNavigation(getDomainFactory().find(query,params,values)); }
public AppNavShortVoCollection listNavigations() { return AppNavShortVoAssembler.createAppNavShortVoCollectionFromAppNavigation(getDomainFactory().find(" from AppNavigation nav where nav.isActive = :isActive", new String[]{"isActive"}, new Object[]{Boolean.TRUE})).sort(); }
public AppNavShortVoCollection listNavigations() { return AppNavShortVoAssembler.createAppNavShortVoCollectionFromAppNavigation(getDomainFactory().find(" from AppNavigation ")).sort(); }