public class SearchQueryParameters extends Object
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 and Description |
---|
SearchQueryParameters()
Construct a query with no search term or filtering.
|
SearchQueryParameters(String query)
Construct a query for the specified String.
|
public SearchQueryParameters()
public SearchQueryParameters(String query)
query
- the String to search for.public void setQuery(String query)
public void setCategory(SpaceCategoryEnum category)
public void setSpaceKey(String spaceKey)
public void setAttachmentTypes(Set<Attachment.Type> attachmentTypes)
public void setContentType(ContentTypeEnum contentType)
public void setContentTypes(Set<ContentTypeEnum> contentTypes)
public void setLastModified(DateRangeQuery.DateRange lastModified)
@Deprecated public void setContributor(String contributor)
setContributor(ConfluenceUser)
instead.contributor
- username of the contributorpublic void setContributor(ConfluenceUser contributor)
contributor
- the contributorpublic String getQuery()
public SpaceCategoryEnum getCategory()
public Set<Attachment.Type> getAttachmentTypes()
public Set<ContentTypeEnum> getContentTypes()
public DateRangeQuery.DateRange getLastModified()
public ConfluenceUser getContributor()
public SearchSort getSort()
public void setSort(SearchSort sort)
public void setPluginContentTypes(Set<ContentTypeSearchDescriptor> pluginContentTypes)
public Set<ContentTypeSearchDescriptor> getPluginContentTypes()
public boolean isIncludeArchivedSpaces()
public void setIncludeArchivedSpaces(boolean includeArchivedSpaces)
public void setOnlyArchivedSpaces(boolean onlyArchivedSpaces)
public boolean isOnlyArchivedSpaces()
Copyright © 2003–2017 Atlassian. All rights reserved.