|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.search.service.SearchQueryParameters
public class SearchQueryParameters
A bean encapsulating the query being issued to the search service.
All properties on this bean are optional. If not set then a property has no affect on the search.
Constructor Summary | |
---|---|
SearchQueryParameters()
Construct a query with no search term or filtering. |
|
SearchQueryParameters(java.lang.String query)
Construct a query for the specified String. |
Method Summary | |
---|---|
java.util.Set<Attachment.Type> |
getAttachmentTypes()
|
SpaceCategoryEnum |
getCategory()
|
java.util.Set<ContentTypeEnum> |
getContentTypes()
|
ConfluenceUser |
getContributor()
|
java.util.Set<java.lang.String> |
getLabels()
|
DateRangeQuery.DateRange |
getLastModified()
|
java.util.Set<ContentTypeSearchDescriptor> |
getPluginContentTypes()
|
java.lang.String |
getQuery()
|
SearchSort |
getSort()
|
java.util.Set<java.lang.String> |
getSpaceKeys()
|
boolean |
isIncludeArchivedSpaces()
|
boolean |
isOnlyArchivedSpaces()
|
void |
setAttachmentTypes(java.util.Set<Attachment.Type> attachmentTypes)
|
void |
setCategory(SpaceCategoryEnum category)
|
void |
setContentType(ContentTypeEnum contentType)
|
void |
setContentTypes(java.util.Set<ContentTypeEnum> contentTypes)
|
void |
setContributor(ConfluenceUser contributor)
Limits results to ones where the given user has been a contributor |
void |
setContributor(java.lang.String contributor)
Deprecated. since 5.2. This method can be slow. Use setContributor(ConfluenceUser) instead. |
void |
setIncludeArchivedSpaces(boolean includeArchivedSpaces)
|
void |
setLabels(java.util.Set<java.lang.String> labels)
|
void |
setLastModified(DateRangeQuery.DateRange lastModified)
|
void |
setOnlyArchivedSpaces(boolean onlyArchivedSpaces)
|
void |
setPluginContentTypes(java.util.Set<ContentTypeSearchDescriptor> pluginContentTypes)
|
void |
setQuery(java.lang.String query)
|
void |
setSort(SearchSort sort)
|
void |
setSpaceKey(java.lang.String spaceKey)
|
void |
setSpaceKeys(java.util.Set<java.lang.String> spaceKeys)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SearchQueryParameters()
public SearchQueryParameters(java.lang.String query)
query
- the String to search for.Method Detail |
---|
public void setQuery(java.lang.String query)
public void setCategory(SpaceCategoryEnum category)
public void setSpaceKey(java.lang.String spaceKey)
public void setSpaceKeys(java.util.Set<java.lang.String> spaceKeys)
public void setAttachmentTypes(java.util.Set<Attachment.Type> attachmentTypes)
public void setContentType(ContentTypeEnum contentType)
public void setContentTypes(java.util.Set<ContentTypeEnum> contentTypes)
public void setLastModified(DateRangeQuery.DateRange lastModified)
@Deprecated public void setContributor(java.lang.String contributor)
setContributor(ConfluenceUser)
instead.
contributor
- username of the contributorpublic void setContributor(ConfluenceUser contributor)
contributor
- the contributorpublic java.lang.String getQuery()
public SpaceCategoryEnum getCategory()
public java.util.Set<java.lang.String> getSpaceKeys()
public java.util.Set<Attachment.Type> getAttachmentTypes()
public java.util.Set<ContentTypeEnum> getContentTypes()
public DateRangeQuery.DateRange getLastModified()
public ConfluenceUser getContributor()
public java.util.Set<java.lang.String> getLabels()
public void setLabels(java.util.Set<java.lang.String> labels)
public SearchSort getSort()
public void setSort(SearchSort sort)
public void setPluginContentTypes(java.util.Set<ContentTypeSearchDescriptor> pluginContentTypes)
public java.util.Set<ContentTypeSearchDescriptor> getPluginContentTypes()
public boolean isIncludeArchivedSpaces()
public void setIncludeArchivedSpaces(boolean includeArchivedSpaces)
public void setOnlyArchivedSpaces(boolean onlyArchivedSpaces)
public boolean isOnlyArchivedSpaces()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |