org.exoplatform.services.wcm.search
Class SmallPaginatedQueryResult

java.lang.Object
  extended by org.exoplatform.commons.utils.PageList
      extended by org.exoplatform.services.wcm.utils.PaginatedNodeIterator
          extended by org.exoplatform.services.wcm.search.PaginatedQueryResult
              extended by org.exoplatform.services.wcm.search.WCMPaginatedQueryResult
                  extended by org.exoplatform.services.wcm.search.SmallPaginatedQueryResult

public class SmallPaginatedQueryResult
extends WCMPaginatedQueryResult

Created by The eXo Platform SAS Author : Hoa Pham hoa.phamvu@exoplatform.com Dec 10, 2008


Field Summary
 
Fields inherited from class org.exoplatform.services.wcm.search.PaginatedQueryResult
queryCriteria, queryResult
 
Fields inherited from class org.exoplatform.services.wcm.utils.PaginatedNodeIterator
nodeIterator, nodes
 
Fields inherited from class org.exoplatform.commons.utils.PageList
available_, availablePage_, currentListPage_, currentPage_, EMPTY_LIST
 
Constructor Summary
SmallPaginatedQueryResult(int pageSize)
          Instantiates a new small paginated query result.
SmallPaginatedQueryResult(javax.jcr.query.QueryResult queryResult, QueryCriteria queryCriteria, int pageSize, boolean isSearchContent)
          Instantiates a new small paginated query result.
 
Method Summary
protected  void checkAndSetPage(int page)
           
 java.util.List getPage(int page)
           
protected  void populateCurrentPage(int page)
           
 
Methods inherited from class org.exoplatform.services.wcm.search.WCMPaginatedQueryResult
filterNodeToDisplay, getNodeToCheckState, getQueryCriteria, getQueryTimeInSecond, getSpellSuggestion, setQueryCriteria, setQueryTime, setSpellSuggestion
 
Methods inherited from class org.exoplatform.services.wcm.search.PaginatedQueryResult
filterNodeToDisplay
 
Methods inherited from class org.exoplatform.services.wcm.utils.PaginatedNodeIterator
changePage, checkAndSetPosition, getAll, getCurrentPageData, getNodeIterator, getNodes, getNodesPerPage, getTotalNodes, getTotalPages, setNodeIterator, setNodes
 
Methods inherited from class org.exoplatform.commons.utils.PageList
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
 

Constructor Detail

SmallPaginatedQueryResult

public SmallPaginatedQueryResult(int pageSize)
Instantiates a new small paginated query result.

Parameters:
pageSize - the page size

SmallPaginatedQueryResult

public SmallPaginatedQueryResult(javax.jcr.query.QueryResult queryResult,
                                 QueryCriteria queryCriteria,
                                 int pageSize,
                                 boolean isSearchContent)
                          throws java.lang.Exception
Instantiates a new small paginated query result.

Parameters:
queryResult - the query result
queryCriteria - the query criteria
pageSize - the page size
Throws:
java.lang.Exception
java.lang.Exception - the exception
Method Detail

getPage

public java.util.List getPage(int page)
                       throws java.lang.Exception
Overrides:
getPage in class PaginatedNodeIterator
Throws:
java.lang.Exception

populateCurrentPage

protected void populateCurrentPage(int page)
                            throws java.lang.Exception
Overrides:
populateCurrentPage in class PaginatedQueryResult
Throws:
java.lang.Exception

checkAndSetPage

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


Copyright © 2010 eXo Platform SAS. All Rights Reserved.