com.atlassian.confluence.search.actions
Class SearchBean

java.lang.Object
  extended by com.atlassian.confluence.search.actions.SearchBean

Deprecated. since 3.0. Use SearchManager instead.

@Deprecated
public class SearchBean
extends java.lang.Object

This bean takes in a query object and executes a search on it It also maintains a paginationSupport object if the results you retrieve require pagination (even though pagination is optional, the hits/results are added onto the pagination object regardless)


Constructor Summary
SearchBean()
          Deprecated.  
SearchBean(int maxResultsPerPage)
          Deprecated.  
 
Method Summary
 int getExcludedGlobalResultsNum(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter filter)
          Deprecated.  
 int getFilteredCount()
          Deprecated. since 2.10 filter counting is no longer used.
 PaginationSupport getPaginationSupport()
          Deprecated.  
 java.util.List search(org.apache.lucene.search.Query query)
          Deprecated.  
 java.util.List search(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter filter)
          Deprecated.  
 java.util.List search(org.apache.lucene.search.Query query, org.apache.lucene.search.Filter passedFilter, org.apache.lucene.search.Sort sort)
          Deprecated.  
 void setAnyTypeDao(AnyTypeDao anyTypeDao)
          Deprecated.  
 void setPaginationSupport(PaginationSupport paginationSupport)
          Deprecated.  
 void setResults(java.util.List results)
          Deprecated.  
 void setSearcher(com.atlassian.bonnie.Searcher searcher)
          Deprecated.  
 void setUserAccessor(UserAccessor userAccessor)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchBean

public SearchBean()
Deprecated. 

SearchBean

public SearchBean(int maxResultsPerPage)
Deprecated. 
Method Detail

search

public java.util.List search(org.apache.lucene.search.Query query)
Deprecated. 

search

public java.util.List search(org.apache.lucene.search.Query query,
                             org.apache.lucene.search.Filter filter)
Deprecated. 

search

public java.util.List search(org.apache.lucene.search.Query query,
                             org.apache.lucene.search.Filter passedFilter,
                             org.apache.lucene.search.Sort sort)
Deprecated. 

setResults

public void setResults(java.util.List results)
Deprecated. 

setSearcher

public void setSearcher(com.atlassian.bonnie.Searcher searcher)
Deprecated. 

setAnyTypeDao

public void setAnyTypeDao(AnyTypeDao anyTypeDao)
Deprecated. 

getPaginationSupport

public PaginationSupport getPaginationSupport()
Deprecated. 

setPaginationSupport

public void setPaginationSupport(PaginationSupport paginationSupport)
Deprecated. 

setUserAccessor

public void setUserAccessor(UserAccessor userAccessor)
Deprecated. 

getFilteredCount

public int getFilteredCount()
Deprecated. since 2.10 filter counting is no longer used.

Returns:
always 0 since deprecation.

getExcludedGlobalResultsNum

public int getExcludedGlobalResultsNum(org.apache.lucene.search.Query query,
                                       org.apache.lucene.search.Filter filter)
Deprecated. 


Copyright © 2003-2010 Atlassian. All Rights Reserved.