|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.search.SearchResults
Nested Class Summary | |
(package private) static class |
SearchResults.Page
|
Field Summary | |
protected Collection |
pages
A collection of SearchResults.Page objects |
Constructor Summary | |
SearchResults(List issuesInPage,
int totalIssueCount,
PagerFilter pagerFilter)
Construct searchResults using the issues that should be displayed, and the 'total' number of issues. |
|
SearchResults(List issues,
PagerFilter pagerFilter)
Construct searchResults using a list of issues. |
Method Summary | |
protected List |
generatePages()
generates a collection of page objects which keep track of the pages for display |
int |
getEnd()
|
List |
getIssues()
Get the issues available in this page. |
int |
getNextStart()
|
int |
getNiceStart()
Return the 'readable' start (ie 1 instead of 0) |
List |
getPages()
|
int |
getPreviousStart()
|
int |
getStart()
|
int |
getTotal()
|
protected List |
restrictPages(Collection pages,
int size)
Restrict the pagers to a certain number of pages on either side of the current page. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Collection pages
SearchResults.Page
objects
Constructor Detail |
public SearchResults(List issues, PagerFilter pagerFilter)
getIssues()
will
be a subset of the issues passed in.
issues
- A list of Issue
objectspagerFilter
- Representing which issues to limit the results topublic SearchResults(List issuesInPage, int totalIssueCount, PagerFilter pagerFilter)
issuesInPage
- A list of Issue
objectstotalIssueCount
- The count of the number of issues returnedpagerFilter
- Representing the users preference for pagingMethod Detail |
public List getIssues()
Issue
objectspublic int getStart()
getStart
in interface IssuePager
public int getEnd()
getEnd
in interface IssuePager
public int getTotal()
getTotal
in interface IssuePager
public int getNextStart()
getNextStart
in interface IssuePager
public int getPreviousStart()
getPreviousStart
in interface IssuePager
public int getNiceStart()
public List getPages()
getPages
in interface IssuePager
protected List generatePages()
protected List restrictPages(Collection pages, int size)
#PAGES_TO_LIST
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |