Interface IPageContentProvider
- All Known Implementing Classes:
PageResultContentProvider
public interface IPageContentProvider
When
IPageLoader load paginated list, the method
IPageLoader.loadPage(PageableController) returns a pagination
structure (like PageResult, Spring Data Page etc...).
This interface is used to returns total elements and paginated list from the
returned pagination structure.-
Method Summary
Modifier and Type Method Description PageableControllercreateController(int pageSize)Create an instance ofPageableControllerwith the given page size.java.util.List<?>getPaginatedList(java.lang.Object page)Returns the page content asList.longgetTotalElements(java.lang.Object page)Returns the total amount of elements.
-
Method Details
-
createController
Create an instance ofPageableControllerwith the given page size. -
getTotalElements
long getTotalElements(java.lang.Object page)Returns the total amount of elements.- Returns:
- the total amount of elements
-
getPaginatedList
java.util.List<?> getPaginatedList(java.lang.Object page)Returns the page content asList.- Returns:
-