org.exoplatform.forum.service
Class JCRPageList<E>

java.lang.Object
  extended by org.exoplatform.commons.utils.PageList
      extended by org.exoplatform.forum.service.JCRPageList<E>
Direct Known Subclasses:
ForumPageList, LazyPageList

public abstract class JCRPageList<E>
extends org.exoplatform.commons.utils.PageList

Version:
$Revision$

Field Summary
protected  int pageSelected
           
 
Fields inherited from class org.exoplatform.commons.utils.PageList
available_, availablePage_, currentListPage_, currentPage_, EMPTY_LIST
 
Constructor Summary
JCRPageList(int pageSize)
           
 
Method Summary
 void checkAndSetPage(int page)
           
 java.util.List<E> currentPage()
           
 int getAvailable()
           
 int getAvailablePage()
           
 int getCurrentPage()
           
 java.util.List<E> getPage(int page)
           
 java.util.List<E> getpage(java.lang.String valueSearch)
           
 java.util.List<E> getPageList(int page, java.util.List<java.lang.String> list)
           
 java.util.List<E> getPageSearch(int page, java.util.List<ForumSearch> list)
           
 int getPageSelected()
           
 java.util.List<E> getPageUser(int page)
           
 java.util.List<E> getPageWatch(int page, java.util.List<Watch> list)
           
protected abstract  void populateCurrentPage(int page)
           
protected abstract  void populateCurrentPage(java.lang.String valueString)
           
protected abstract  void populateCurrentPageList(int page, java.util.List<java.lang.String> list)
           
protected abstract  void populateCurrentPageSearch(int page, java.util.List list, boolean isWatch, boolean isSearchUser)
           
 void setPageSize(long pageSize)
           
 
Methods inherited from class org.exoplatform.commons.utils.PageList
getAll, 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

pageSelected

protected int pageSelected
Constructor Detail

JCRPageList

public JCRPageList(int pageSize)
Method Detail

populateCurrentPage

protected abstract void populateCurrentPage(int page)
                                     throws java.lang.Exception
Specified by:
populateCurrentPage in class org.exoplatform.commons.utils.PageList
Throws:
java.lang.Exception

populateCurrentPageSearch

protected abstract void populateCurrentPageSearch(int page,
                                                  java.util.List list,
                                                  boolean isWatch,
                                                  boolean isSearchUser)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

populateCurrentPageList

protected abstract void populateCurrentPageList(int page,
                                                java.util.List<java.lang.String> list)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

populateCurrentPage

protected abstract void populateCurrentPage(java.lang.String valueString)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getPageSelected

public int getPageSelected()

setPageSize

public void setPageSize(long pageSize)

getCurrentPage

public int getCurrentPage()
Overrides:
getCurrentPage in class org.exoplatform.commons.utils.PageList

getAvailable

public int getAvailable()
Overrides:
getAvailable in class org.exoplatform.commons.utils.PageList

getAvailablePage

public int getAvailablePage()
Overrides:
getAvailablePage in class org.exoplatform.commons.utils.PageList

currentPage

public java.util.List<E> currentPage()
                              throws java.lang.Exception
Overrides:
currentPage in class org.exoplatform.commons.utils.PageList
Throws:
java.lang.Exception

getPage

public java.util.List<E> getPage(int page)
                          throws java.lang.Exception
Overrides:
getPage in class org.exoplatform.commons.utils.PageList
Throws:
java.lang.Exception

getpage

public java.util.List<E> getpage(java.lang.String valueSearch)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getPageSearch

public java.util.List<E> getPageSearch(int page,
                                       java.util.List<ForumSearch> list)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getPageWatch

public java.util.List<E> getPageWatch(int page,
                                      java.util.List<Watch> list)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getPageUser

public java.util.List<E> getPageUser(int page)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getPageList

public java.util.List<E> getPageList(int page,
                                     java.util.List<java.lang.String> list)
                              throws java.lang.Exception
Throws:
java.lang.Exception

checkAndSetPage

public void checkAndSetPage(int page)
                     throws java.lang.Exception
Overrides:
checkAndSetPage in class org.exoplatform.commons.utils.PageList
Throws:
java.lang.Exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.