public class PaginatedResultIterator
extends org.exoplatform.commons.utils.PageList
| Constructor and Description |
|---|
PaginatedResultIterator(int pageSize)
Instantiates a new paginated node iterator.
|
PaginatedResultIterator(Result result,
int pageSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
changePage(int page)
Change page.
|
List |
getAll() |
List |
getCurrentPageData()
Retrieve the nodes of current page.
|
int |
getNodesPerPage()
Retrieve the nodes per page.
|
List |
getPage(int page) |
long |
getTotalNodes()
Retrieve the total nodes.
|
int |
getTotalPages()
Retrieve the total pages.
|
protected void |
populateCurrentPage(int page) |
protected Result result
public PaginatedResultIterator(int pageSize)
pageSize - the page sizepublic PaginatedResultIterator(Result result, int pageSize)
protected void populateCurrentPage(int page)
throws Exception
populateCurrentPage in class org.exoplatform.commons.utils.PageListExceptionpublic int getTotalPages()
public int getNodesPerPage()
public long getTotalNodes()
public List getCurrentPageData() throws Exception
Exception - the exceptionpublic List getPage(int page) throws Exception
getPage in class org.exoplatform.commons.utils.PageListExceptionpublic void changePage(int page)
throws Exception
page - the pageException - the exceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.