public class SearchQueryBean extends Object implements Serializable
This class really shouldn't be serializable, but the effort of breaking it up into wired and unwired parts suitable for putting in the session (as it should have been from the beginning) is too much compared to the risk of changing such an old API.
Clients who put the bean into the session are expected to unwire() it on the way out and rewire it on the way back in.
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_ALL
Deprecated.
|
Constructor and Description |
---|
SearchQueryBean()
Deprecated.
|
SearchQueryBean(com.atlassian.bonnie.Searcher searcher,
SpaceManager spaceManager,
UserAccessor userAccessor,
LabelManager labelManager,
SettingsManager settingsManager)
Deprecated.
|
SearchQueryBean(SearchQueryBean searchQueryBean)
Deprecated.
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addClassSearchField(org.apache.lucene.search.BooleanQuery query,
String typeClass)
Deprecated.
|
org.apache.lucene.search.Query |
buildPeopleQuery(boolean onlyPeopleWithPersonalSpaces)
Deprecated.
|
org.apache.lucene.search.Query |
buildQuery()
Deprecated.
|
org.apache.lucene.search.Query |
buildQueryNoSpaceLimit()
Deprecated.
|
org.apache.lucene.search.Query |
buildSpaceQuery(String spaceKey)
Deprecated.
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(String type)
Deprecated.
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
|
String |
getGroupBy()
Deprecated.
|
String |
getIgnoredSearchWords()
Deprecated.
|
String |
getLastModified()
Deprecated.
|
String |
getQueryString()
Deprecated.
|
String |
getSearchWords()
Deprecated.
|
com.atlassian.bonnie.search.SearchWordsLister |
getSearchWordsLister()
Deprecated.
|
String |
getSpaceKey()
Deprecated.
|
String |
getType()
Deprecated.
|
String |
getTypeClass()
Deprecated.
|
static String |
getTypeClass(String contentType)
Deprecated.
|
boolean |
isMailIncluded()
Deprecated.
|
void |
setGroupBy(String groupBy)
Deprecated.
|
void |
setLabelManager(LabelManager labelManager)
Deprecated.
|
void |
setLastModified(String lastModified)
Deprecated.
|
void |
setQueryString(String queryString)
Deprecated.
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)
Deprecated.
|
void |
setSearchWordsLister(com.atlassian.bonnie.search.SearchWordsLister searchWordsLister)
Deprecated.
|
void |
setSettingsManager(SettingsManager settingsManager)
Deprecated.
Since 5.0
|
void |
setSpaceKey(String spaceKey)
Deprecated.
|
void |
setSpaceKeys(List<String> spaceKeys)
Deprecated.
|
void |
setSpaceManager(SpaceManager spaceManager)
Deprecated.
|
void |
setTimer(Timer timer)
Deprecated.
|
void |
setType(String type)
Deprecated.
|
void |
setUserAccessor(UserAccessor userAccessor)
Deprecated.
|
String |
toString()
Deprecated.
|
void |
unwire()
Deprecated.
Remove all Spring components from the bean, making it safe to transport
|
public static final String CONTENT_ALL
public SearchQueryBean()
public SearchQueryBean(SearchQueryBean searchQueryBean)
searchQueryBean
- public SearchQueryBean(com.atlassian.bonnie.Searcher searcher, SpaceManager spaceManager, UserAccessor userAccessor, LabelManager labelManager, SettingsManager settingsManager)
public void unwire()
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(String spaceKey)
spaceKey
- public void addClassSearchField(org.apache.lucene.search.BooleanQuery query, String typeClass)
public org.apache.lucene.search.Query buildTypeQuery(String type)
type
- public boolean isMailIncluded()
public String getIgnoredSearchWords()
public String getSearchWords()
public com.atlassian.bonnie.search.SearchWordsLister getSearchWordsLister()
public void setSearchWordsLister(com.atlassian.bonnie.search.SearchWordsLister searchWordsLister)
public String getQueryString()
public void setQueryString(String queryString) throws IOException
queryString
- IOException
public String getSpaceKey()
public void setSpaceKey(String spaceKey)
public String getGroupBy()
public void setGroupBy(String groupBy)
public String getType()
public void setType(String type)
public String getTypeClass()
public String getLastModified()
public void setLastModified(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 void setLabelManager(LabelManager labelManager)
public void setSettingsManager(SettingsManager settingsManager)
Copyright © 2003–2016 Atlassian. All rights reserved.