Package com.atlassian.bamboo.ww2.aware
Interface LazyPaginationAware<T>
- All Known Implementing Classes:
DeploymentProjectAuditLog
,ListBuildResults
,ListChainResults
,ViewAgentRecentBuildsSummary
,ViewChainAuditLog
,ViewDeploymentVersionJiraIssues
,ViewElasticAgentHistoryAction
,ViewGlobalAuditLogAction
,ViewJiraIssueForPlan
public interface LazyPaginationAware<T>
Actions that implement this has a results list that is paginated
and only results on the current page will be fetched.
-
Method Summary
Modifier and TypeMethodDescriptiongetFilteredResultsList
(int firstResult, int maxResults) Implementing actions should initialize and return up to maxResults items ranging from firstResult from the underlying list of uninitialized itemsgetPager()
Freemarker views for LazyPaginationAware actions should iterate over pager.page.listint
Implementing actions should return a total number of items that are subject to paginationvoid
Used to inject pager by PaginationAwareInterceptor
-
Method Details
-
getFilteredResultsList
Implementing actions should initialize and return up to maxResults items ranging from firstResult from the underlying list of uninitialized items- Parameters:
firstResult
- index of first itemmaxResults
- number of items to be returned- Returns:
- range of initialized results from underlying full list of uninitialized items
-
getResultsCount
int getResultsCount()Implementing actions should return a total number of items that are subject to pagination- Returns:
- number of items in the underlying list
-
getPager
Freemarker views for LazyPaginationAware actions should iterate over pager.page.list- Returns:
Pager
object
-
setPager
Used to inject pager by PaginationAwareInterceptor- Parameters:
pager
-Pager
object
-