public interface

LazyPaginationAware

com.atlassian.bamboo.ww2.aware.LazyPaginationAware<T>
Known Indirect Subclasses

Class Overview

Actions that implement this has a results list that is paginated and only results on the current page will be fetched.

Summary

Public Methods
@NotNull List<T> getFilteredResultsList(int firstResult, int maxResults)
Implementing actions should initialize and return up to maxResults items ranging from firstResult from the underlying list of uninitialized items
Pager<T> getPager()
Freemarker views for LazyPaginationAware actions should iterate over pager.page.list
int getResultsCount()
Implementing actions should return a total number of items that are subject to pagination
void setPager(Pager<T> pager)
Used to inject pager by PaginationAwareInterceptor

Public Methods

@NotNull public List<T> getFilteredResultsList (int firstResult, int maxResults)

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 item
maxResults number of items to be returned
Returns
  • range of initialized results from underlying full list of uninitialized items

public Pager<T> getPager ()

Freemarker views for LazyPaginationAware actions should iterate over pager.page.list

Returns

public int getResultsCount ()

Implementing actions should return a total number of items that are subject to pagination

Returns
  • number of items in the underlying list

public void setPager (Pager<T> pager)

Used to inject pager by PaginationAwareInterceptor

Parameters
pager Pager object