|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.commons.utils.PageList
org.exoplatform.services.wcm.utils.PaginatedNodeIterator
public class PaginatedNodeIterator
Created by The eXo Platform SAS Author : Hoa Pham hoa.phamvu@exoplatform.com Oct 17, 2008
| Field Summary | |
|---|---|
protected java.util.List<javax.jcr.Node> |
nodes
The nodes. |
| Fields inherited from class org.exoplatform.commons.utils.PageList |
|---|
available_, availablePage_, currentListPage_, currentPage_, EMPTY_LIST |
| Constructor Summary | |
|---|---|
PaginatedNodeIterator(int pageSize)
Instantiates a new paginated node iterator. |
|
PaginatedNodeIterator(java.util.List<javax.jcr.Node> nodes,
int pageSize)
Instantiates a new paginated node iterator. |
|
| Method Summary | |
|---|---|
void |
changePage(int page)
Change page. |
protected void |
checkAndSetPosition(int page)
Check and set current cursor position in iterator. |
java.util.List |
getAll()
|
java.util.List |
getCurrentPageData()
Retrieve the nodes of current page. |
java.util.List<javax.jcr.Node> |
getNodes()
Gets the nodes. |
int |
getNodesPerPage()
Retrieve the nodes per page. |
java.util.List |
getPage(int page)
|
long |
getTotalNodes()
Retrieve the total nodes. |
int |
getTotalPages()
Retrieve the total pages. |
protected void |
populateCurrentPage(int page)
|
void |
setNodes(java.util.List<javax.jcr.Node> nodes)
Sets the nodes. |
| Methods inherited from class org.exoplatform.commons.utils.PageList |
|---|
checkAndSetPage, currentPage, getAvailable, getAvailablePage, getCurrentPage, getFrom, getPageSize, getTo, setAvailablePage, setPageSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<javax.jcr.Node> nodes
| Constructor Detail |
|---|
public PaginatedNodeIterator(int pageSize)
pageSize - the page size
public PaginatedNodeIterator(java.util.List<javax.jcr.Node> nodes,
int pageSize)
pageSize - the page sizenodes - the nodes| Method Detail |
|---|
public java.util.List<javax.jcr.Node> getNodes()
public void setNodes(java.util.List<javax.jcr.Node> nodes)
nodes - the nodes to set
protected void populateCurrentPage(int page)
throws java.lang.Exception
populateCurrentPage in class org.exoplatform.commons.utils.PageListjava.lang.Exceptionpublic int getTotalPages()
public int getNodesPerPage()
public long getTotalNodes()
public java.util.List getCurrentPageData()
throws java.lang.Exception
java.lang.Exception - the exception
public java.util.List getPage(int page)
throws java.lang.Exception
getPage in class org.exoplatform.commons.utils.PageListjava.lang.Exception
public void changePage(int page)
throws java.lang.Exception
page - the page
java.lang.Exception - the exceptionprotected void checkAndSetPosition(int page)
page - the page
public java.util.List getAll()
throws java.lang.Exception
getAll in class org.exoplatform.commons.utils.PageListjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||