private void showSearchTab() { // if they have pressed the 'Search' button then boolean searchPerformed = isSearchRequested(); if (searchPerformed) { final JiraServiceContext ctx = getJiraServiceContext(); searchResults = getPortalPageViewHelper().search(ctx); if (ctx.getErrorCollection().hasAnyErrors()) { searchPerformed = false; } else { pages = transformToDisplayBeans(searchResults.getResults()); } } if (!searchPerformed) { searchEmptyMessageKey = KEY_NO_SEARCH; } view = Tab.SEARCH; }
public int getTotalResultCount() { return searchResults != null ? searchResults.getTotalResultCount() : -1; }
public int getEndPosition() { return searchResults != null ? searchResults.getEndResultPosition() : -1; }
public int getStartPosition() { return searchResults != null ? searchResults.getStartResultPosition() : -1; }
public String getPreviousUrl() { return searchResults != null ? searchResults.getPreviousUrl() : null; }
public String getNextUrl() { return searchResults != null ? searchResults.getNextUrl() : null; }