public interface I_CmsSearchConfigurationPagination
| Modifier and Type | Method and Description |
|---|---|
int |
getNumPages(long numFound)
Calculates the number of pages for the provided number of results.
|
int |
getPageNavLength()
Returns the length of a "Google"-like navigation.
|
java.lang.String |
getPageParam()
Returns the request parameter that should be used to send the current page.
|
int |
getPageSize()
Deprecated.
use either
getSizeOfPage(int) to get the size
for a specific page or I_CmsSearchControllerPagination.getCurrentPageSize() to get the size
of the current page. |
java.util.List<java.lang.Integer> |
getPageSizes()
Returns the page sizes as configured for the first pages of the search.
|
int |
getSizeOfPage(int pageNum)
Returns the page size for the provided page.
|
int |
getStartOfPage(int pageNum)
Returns the index of the first item to show on the given page.
|
int getNumPages(long numFound)
numFound - the number of resultsint getPageNavLength()
java.lang.String getPageParam()
@Deprecated int getPageSize()
getSizeOfPage(int) to get the size
for a specific page or I_CmsSearchControllerPagination.getCurrentPageSize() to get the size
of the current page.getSizeOfPage(int).java.util.List<java.lang.Integer> getPageSizes()
int getSizeOfPage(int pageNum)
pageNum - the number of the page (starting with 1) for which the size should be returned.int getStartOfPage(int pageNum)
pageNum - the number of the page, for which the index of the first item to show on is requested.