protected List<UserProfile> getListProfileUser() throws Exception { // userProfileListAccess = (UserProfileListAccess) this.getForumService().searchUserProfileByFilter(new UserProfileFilter(valueSearch)); userProfileListAccess.initialize(5, pageIterator.getPageSelected()); pageIterator.initPage( 5, userProfileListAccess.getCurrentPage(), userProfileListAccess.getSize(), userProfileListAccess.getTotalPages()); // load data UserProfile[] objs = userProfileListAccess.load(pageIterator.getPageSelected()); userProfiles = Arrays.asList(objs); pageIterator.setSelectPage(userProfileListAccess.getCurrentPage()); return userProfiles; }
@SuppressWarnings({"unused"}) private List<ForumSearch> getListObject() throws Exception { try { list_ = getForumService().getJobWattingForModerator(getPath()); } catch (Exception e) { list_ = new ArrayList<ForumSearch>(); log.error("list of forum search must not null: ", e); } pageList = new ForumPageList(10, list_.size()); pageList.setPageSize(10); pageIterator.updatePageList(pageList); isShowIter = true; if (pageList.getAvailablePage() <= 1) isShowIter = false; int pageSelect = pageIterator.getPageSelected(); List<ForumSearch> list = new ArrayList<ForumSearch>(); try { list.addAll(pageList.getPageSearch(pageSelect, list_)); } catch (Exception e) { } return list; }
private void searchUserProfileByKey(String keyword) throws Exception { try { // this.valueSearch = keyword; // // getListProfileUser(); pageIterator.setSelectPage(1); // this.valueSearch = ForumUtils.EMPTY_STR; this.isViewSearchUser = true; } catch (Exception e) { this.isViewSearchUser = false; } }