|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.search.actions.SearchQueryBean
public class SearchQueryBean
Collects query parameters from the search panel (searchpanel.vm) and provides methods that build and return a Query object that lucene can then run
Field Summary | |
---|---|
static java.lang.String |
CONTENT_ALL
|
Constructor Summary | |
---|---|
SearchQueryBean()
|
|
SearchQueryBean(com.atlassian.bonnie.Searcher searcher,
SpaceManager spaceManager,
UserAccessor userAccessor,
LabelManager labelManager,
SettingsManager settingsManager)
|
|
SearchQueryBean(SearchQueryBean searchQueryBean)
Copy constructor. |
Method Summary | |
---|---|
void |
addClassSearchField(org.apache.lucene.search.BooleanQuery query,
java.lang.String typeClass)
|
org.apache.lucene.search.Query |
buildPeopleQuery(boolean onlyPeopleWithPersonalSpaces)
|
org.apache.lucene.search.Query |
buildQuery()
|
org.apache.lucene.search.Query |
buildQueryNoSpaceLimit()
|
org.apache.lucene.search.Query |
buildSpaceQuery(java.lang.String spaceKey)
builds a space query without changing the space key of this query bean typically this method will be called in a loop to create queries for a list of space keys |
org.apache.lucene.search.Query |
buildTypeQuery(java.lang.String type)
builds a type based query without changing the type of this query bean typically this method will be called in a loop to create queries for a list of content types |
java.lang.String |
getGroupBy()
|
java.lang.String |
getIgnoredSearchWords()
|
java.lang.String |
getLastModified()
|
java.lang.String |
getQueryString()
|
java.lang.String |
getSearchWords()
|
com.atlassian.bonnie.search.SearchWordsLister |
getSearchWordsLister()
|
java.lang.String |
getSpaceKey()
|
java.lang.String |
getType()
|
java.lang.String |
getTypeClass()
|
static java.lang.String |
getTypeClass(java.lang.String contentType)
|
boolean |
isMailIncluded()
|
void |
setGroupBy(java.lang.String groupBy)
|
void |
setLabelManager(LabelManager labelManager)
|
void |
setLastModified(java.lang.String lastModified)
|
void |
setQueryString(java.lang.String queryString)
every time a new query is set we want to reset the search words lister which stores the searched terms and ignored terms. |
void |
setSearcher(com.atlassian.bonnie.Searcher searcher)
|
void |
setSearchWordsLister(com.atlassian.bonnie.search.SearchWordsLister searchWordsLister)
|
void |
setSettingsManager(SettingsManager settingsManager)
|
void |
setSpaceKey(java.lang.String spaceKey)
|
void |
setSpaceKeys(java.util.List<java.lang.String> spaceKeys)
|
void |
setSpaceManager(SpaceManager spaceManager)
|
void |
setTimer(Timer timer)
|
void |
setType(java.lang.String type)
|
void |
setUserAccessor(UserAccessor userAccessor)
|
java.lang.String |
toString()
|
void |
unwire()
Remove all Spring components from the bean, making it safe to transport |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONTENT_ALL
Constructor Detail |
---|
public SearchQueryBean()
public SearchQueryBean(SearchQueryBean searchQueryBean)
searchQueryBean
- public SearchQueryBean(com.atlassian.bonnie.Searcher searcher, SpaceManager spaceManager, UserAccessor userAccessor, LabelManager labelManager, SettingsManager settingsManager)
Method Detail |
---|
public void unwire()
public static java.lang.String getTypeClass(java.lang.String contentType)
public org.apache.lucene.search.Query buildQuery()
public org.apache.lucene.search.Query buildQueryNoSpaceLimit()
public org.apache.lucene.search.Query buildPeopleQuery(boolean onlyPeopleWithPersonalSpaces)
public org.apache.lucene.search.Query buildSpaceQuery(java.lang.String spaceKey)
spaceKey
- public void addClassSearchField(org.apache.lucene.search.BooleanQuery query, java.lang.String typeClass)
public org.apache.lucene.search.Query buildTypeQuery(java.lang.String type)
type
- public boolean isMailIncluded()
public java.lang.String getIgnoredSearchWords()
public java.lang.String getSearchWords()
public com.atlassian.bonnie.search.SearchWordsLister getSearchWordsLister()
public void setSearchWordsLister(com.atlassian.bonnie.search.SearchWordsLister searchWordsLister)
public java.lang.String getQueryString()
public void setQueryString(java.lang.String queryString) throws java.io.IOException
queryString
-
java.io.IOException
public java.lang.String getSpaceKey()
public void setSpaceKey(java.lang.String spaceKey)
public java.lang.String getGroupBy()
public void setGroupBy(java.lang.String groupBy)
public java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getTypeClass()
public java.lang.String getLastModified()
public void setLastModified(java.lang.String lastModified)
public void setSearcher(com.atlassian.bonnie.Searcher searcher)
public void setSpaceManager(SpaceManager spaceManager)
public void setUserAccessor(UserAccessor userAccessor)
public void setTimer(Timer timer)
public java.lang.String toString()
toString
in class java.lang.Object
public void setLabelManager(LabelManager labelManager)
public void setSpaceKeys(java.util.List<java.lang.String> spaceKeys)
public void setSettingsManager(SettingsManager settingsManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |