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

java.lang.Object
  extended by org.exoplatform.commons.utils.PageList
      extended by org.exoplatform.forum.service.JCRPageList<E>
          extended by org.exoplatform.forum.service.LazyPageList<E>

public class LazyPageList<E>
extends JCRPageList<E>

A PageList implementation backed by a LazyList to load data lazily. Implementation was partially borrowed from kernel 2.1 class of same name. Extends JCRPageList for backward compatibility.

Version:
$Revision$
Author:
Patrice lamarque

Field Summary
 
Fields inherited from class org.exoplatform.forum.service.JCRPageList
pageSelected
 
Fields inherited from class org.exoplatform.commons.utils.PageList
available_, availablePage_, currentListPage_, currentPage_, EMPTY_LIST
 
Constructor Summary
LazyPageList(ListAccess<E> listAccess, int pageSize)
           
 
Method Summary
 java.util.List<E> getAll()
           
protected  void populateCurrentPage(int page)
           
protected  void populateCurrentPage(java.lang.String valueString)
           
protected  void populateCurrentPageList(int page, java.util.List list)
           
protected  void populateCurrentPageSearch(int page, java.util.List list, boolean isWatch, boolean isSearchUser)
           
 
Methods inherited from class org.exoplatform.forum.service.JCRPageList
currentPage, getAvailable, getAvailablePage, getCurrentPage, getPage, getpage, getPageList, getPageSearch, getPageSelected, getPageUser, getPageWatch, setPageSize
 
Methods inherited from class org.exoplatform.commons.utils.PageList
checkAndSetPage, getFrom, getPage, getPageSize, getTo, setAvailablePage, setPageSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyPageList

public LazyPageList(ListAccess<E> listAccess,
                    int pageSize)
Method Detail

populateCurrentPage

protected void populateCurrentPage(int page)
                            throws java.lang.Exception
Specified by:
populateCurrentPage in class JCRPageList<E>
Throws:
java.lang.Exception

getAll

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

populateCurrentPage

protected void populateCurrentPage(java.lang.String valueString)
                            throws java.lang.Exception
Specified by:
populateCurrentPage in class JCRPageList<E>
Throws:
java.lang.Exception

populateCurrentPageList

protected void populateCurrentPageList(int page,
                                       java.util.List list)
                                throws java.lang.Exception
Specified by:
populateCurrentPageList in class JCRPageList<E>
Throws:
java.lang.Exception

populateCurrentPageSearch

protected void populateCurrentPageSearch(int page,
                                         java.util.List list,
                                         boolean isWatch,
                                         boolean isSearchUser)
                                  throws java.lang.Exception
Specified by:
populateCurrentPageSearch in class JCRPageList<E>
Throws:
java.lang.Exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.