コード例 #1
0
 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;
 }
コード例 #2
0
 public int getTotalResultCount() {
   return searchResults != null ? searchResults.getTotalResultCount() : -1;
 }
コード例 #3
0
 public int getEndPosition() {
   return searchResults != null ? searchResults.getEndResultPosition() : -1;
 }
コード例 #4
0
 public int getStartPosition() {
   return searchResults != null ? searchResults.getStartResultPosition() : -1;
 }
コード例 #5
0
 public String getPreviousUrl() {
   return searchResults != null ? searchResults.getPreviousUrl() : null;
 }
コード例 #6
0
 public String getNextUrl() {
   return searchResults != null ? searchResults.getNextUrl() : null;
 }