org.exoplatform.services.wcm.search
Class WCMPaginatedQueryResult

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
Direct Known Subclasses:
SmallPaginatedQueryResult

public class WCMPaginatedQueryResult
extends PaginatedQueryResult

Created by The eXo Platform SAS Author : Hoa Pham hoa.phamvu@exoplatform.com Oct 21, 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
WCMPaginatedQueryResult(int pageSize)
          Instantiates a new wCM paginated query result.
WCMPaginatedQueryResult(javax.jcr.query.QueryResult queryResult, QueryCriteria queryCriteria, int pageSize, boolean isSearchContent)
          Instantiates a new wCM paginated query result.
 
Method Summary
protected  javax.jcr.Node filterNodeToDisplay(javax.jcr.Node node, boolean isSearchContent)
           
protected  javax.jcr.Node getNodeToCheckState(javax.jcr.Node node)
           
 QueryCriteria getQueryCriteria()
          Gets the query criteria.
 float getQueryTimeInSecond()
          Gets the query time in second.
 java.lang.String getSpellSuggestion()
          Gets the spell suggestion.
 void setQueryCriteria(QueryCriteria queryCriteria)
          Sets the query criteria.
 void setQueryTime(long time)
          Sets the query time.
 void setSpellSuggestion(java.lang.String spellSuggestion)
          Sets the spell suggestion.
 
Methods inherited from class org.exoplatform.services.wcm.search.PaginatedQueryResult
filterNodeToDisplay, populateCurrentPage
 
Methods inherited from class org.exoplatform.services.wcm.utils.PaginatedNodeIterator
changePage, checkAndSetPosition, getAll, getCurrentPageData, getNodeIterator, getNodes, getNodesPerPage, getPage, getTotalNodes, getTotalPages, setNodeIterator, setNodes
 
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
 

Constructor Detail

WCMPaginatedQueryResult

public WCMPaginatedQueryResult(int pageSize)
Instantiates a new wCM paginated query result.

Parameters:
pageSize - the page size

WCMPaginatedQueryResult

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

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

setQueryTime

public void setQueryTime(long time)
Sets the query time.

Parameters:
time - the new query time

getQueryTimeInSecond

public float getQueryTimeInSecond()
Gets the query time in second.

Returns:
the query time in second

getQueryCriteria

public QueryCriteria getQueryCriteria()
Gets the query criteria.

Returns:
the query criteria

setQueryCriteria

public void setQueryCriteria(QueryCriteria queryCriteria)
Sets the query criteria.

Parameters:
queryCriteria - the new query criteria

filterNodeToDisplay

protected javax.jcr.Node filterNodeToDisplay(javax.jcr.Node node,
                                             boolean isSearchContent)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getNodeToCheckState

protected javax.jcr.Node getNodeToCheckState(javax.jcr.Node node)
                                      throws java.lang.Exception
Overrides:
getNodeToCheckState in class PaginatedQueryResult
Throws:
java.lang.Exception

getSpellSuggestion

public java.lang.String getSpellSuggestion()
Gets the spell suggestion.

Returns:
the spell suggestion

setSpellSuggestion

public void setSpellSuggestion(java.lang.String spellSuggestion)
Sets the spell suggestion.

Parameters:
spellSuggestion - the new spell suggestion


Copyright © 2012 eXo Platform SAS. All Rights Reserved.