Package com.atlassian.confluence.pages
Class ManualTotalPaginationSupport<T>
- java.lang.Object
-
- bucket.core.actions.PaginationSupport<T>
-
- com.atlassian.confluence.pages.ManualTotalPaginationSupport<T>
-
- All Implemented Interfaces:
PaginationSupport<T>
public class ManualTotalPaginationSupport<T> extends PaginationSupport<T>
Deprecated.since 6.10.0. UsePaginationService
instead.This class allows us to set the total number of items without reading the size of the items list. This means we don't have to load all the items to determine the size.
-
-
Field Summary
-
Fields inherited from class bucket.core.actions.PaginationSupport
DEFAULT_COUNT_ON_EACH_PAGE, DEFAULT_PAGE_SIZE
-
-
Constructor Summary
Constructors Constructor Description ManualTotalPaginationSupport()
Deprecated.ManualTotalPaginationSupport(int pageSize)
Deprecated.ManualTotalPaginationSupport(List<T> items, int startIndex, int total, int pageSize)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<T>
getPage()
Deprecated.Returns a subset of the list of items passed in, based on startIndex and the page sizeint
getTotal()
Deprecated.Returns the total number of items in the listvoid
setTotal(int total)
Deprecated.-
Methods inherited from class bucket.core.actions.PaginationSupport
getItems, getNextStartIndex, getNextStartIndexes, getNiceEndIndex, getNiceStartIndex, getPageSize, getPreviousStartIndex, getPreviousStartIndexes, getStartIndex, getStartIndexValue, setItems, setPageSize, setStartIndex
-
-
-
-
Method Detail
-
getPage
public List<T> getPage()
Deprecated.Description copied from class:PaginationSupport
Returns a subset of the list of items passed in, based on startIndex and the page size- Specified by:
getPage
in interfacePaginationSupport<T>
- Overrides:
getPage
in classPaginationSupport<T>
- Returns:
- a subset of the list of items passed in, based on startIndex and the page size
-
getTotal
public int getTotal()
Deprecated.Description copied from interface:PaginationSupport
Returns the total number of items in the list- Specified by:
getTotal
in interfacePaginationSupport<T>
- Overrides:
getTotal
in classPaginationSupport<T>
- Returns:
- total number of items in the list
-
setTotal
public void setTotal(int total)
Deprecated.- Overrides:
setTotal
in classPaginationSupport<T>
-
-