public WebYdkAccountListResult getYdkAccounts(WebServiceListParams listRarams) { // TODO Auto-generated method stub List<YdkAccount> accountList = (List<YdkAccount>) accountDbMngr.getAllYdkAccounts(); for (YdkAccount a : accountList) { a.getYdkRole().getMask(); a.getYdkRole().setYdkAccounts(null); } return getSpecifiedPageList(accountList, listRarams, new WebYdkAccountListResult()); }
public WebYdkAccountListResult getAllYdkAccounts() { // TODO Auto-generated method stub WebYdkAccountListResult result = new WebYdkAccountListResult(); result.setYdkAccounts((List) accountDbMngr.getAllYdkAccounts()); result.setCurrentPage(1); result.setTotalItems(result.getYdkAccounts().size()); result.setTotalPages(1); for (YdkAccount a : result.getYdkAccounts()) { a.getYdkRole().getMask(); a.getYdkRole().setYdkAccounts(null); } return result; }