@Override protected List<ProxyBaseSoftwareModuleItem> loadBeans(final int startIndex, final int count) { final Slice<SoftwareModule> swModuleBeans; if (type == null && StringUtils.isEmpty(searchText)) { swModuleBeans = getSoftwareManagementService().findAll(new OffsetBasedPageRequest(startIndex, count, sort)); } else { swModuleBeans = getSoftwareManagementService() .findByTextAndType(new OffsetBasedPageRequest(startIndex, count, sort), searchText, type); } return swModuleBeans.getContent().stream().map(this::getProxyBean).collect(Collectors.toList()); }
@Override protected List<ProxyBaseSoftwareModuleItem> loadBeans(final int startIndex, final int count) { final Slice<SoftwareModule> swModuleBeans; if (type == null && StringUtils.isEmpty(searchText)) { swModuleBeans = getSoftwareManagementService().findAll(new OffsetBasedPageRequest(startIndex, count, sort)); } else { swModuleBeans = getSoftwareManagementService() .findByTextAndType(new OffsetBasedPageRequest(startIndex, count, sort), searchText, type); } return swModuleBeans.getContent().stream().map(this::getProxyBean).collect(Collectors.toList()); }