Class SearchQueryParameters
- java.lang.Object
-
- com.atlassian.confluence.search.service.SearchQueryParameters
-
public class SearchQueryParameters extends Object
Encapsulates parameters which describes search terms and additional filtering.
All properties on this object are optional. If not set then a property has no affect on the search.
-
-
Field Summary
Fields Modifier and Type Field Description static String
PREFERRED_SPACE_KEY
-
Constructor Summary
Constructors Constructor Description SearchQueryParameters()
Construct a query with no search term or filtering.SearchQueryParameters(String query)
Construct a query for the specified String.
-
Method Summary
-
-
-
Field Detail
-
PREFERRED_SPACE_KEY
public static final String PREFERRED_SPACE_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SearchQueryParameters
public SearchQueryParameters()
Construct a query with no search term or filtering.
-
SearchQueryParameters
public SearchQueryParameters(String query)
Construct a query for the specified String.- Parameters:
query
- the String to search for.
-
-
Method Detail
-
setQuery
public void setQuery(String query)
-
setCategory
public void setCategory(SpaceCategoryEnum category)
-
setSpaceKey
public void setSpaceKey(String spaceKey)
-
setAttachmentTypes
public void setAttachmentTypes(Set<Attachment.Type> attachmentTypes)
-
setContentType
public void setContentType(ContentTypeEnum contentType)
-
setContentTypes
public void setContentTypes(Set<ContentTypeEnum> contentTypes)
-
setLastModified
public void setLastModified(DateRangeQuery.DateRange lastModified)
-
setContributor
public void setContributor(ConfluenceUser contributor)
Limits results to ones where the given user has been a contributor- Parameters:
contributor
- the contributor- Since:
- 5.2
-
getQuery
public String getQuery()
-
getCategory
public SpaceCategoryEnum getCategory()
-
getAttachmentTypes
public Set<Attachment.Type> getAttachmentTypes()
-
getContentTypes
public Set<ContentTypeEnum> getContentTypes()
-
getLastModified
public DateRangeQuery.DateRange getLastModified()
-
getContributor
public ConfluenceUser getContributor()
-
getSort
public SearchSort getSort()
-
getSearchQueryFilter
public SearchQuery getSearchQueryFilter()
-
setSort
public void setSort(SearchSort sort)
-
setPluginContentTypes
public void setPluginContentTypes(Set<ContentTypeSearchDescriptor> pluginContentTypes)
-
getPluginContentTypes
public Set<ContentTypeSearchDescriptor> getPluginContentTypes()
-
isIncludeArchivedSpaces
public boolean isIncludeArchivedSpaces()
-
setIncludeArchivedSpaces
public void setIncludeArchivedSpaces(boolean includeArchivedSpaces)
-
setOnlyArchivedSpaces
public void setOnlyArchivedSpaces(boolean onlyArchivedSpaces)
-
isOnlyArchivedSpaces
public boolean isOnlyArchivedSpaces()
-
setSearchQueryFilter
public void setSearchQueryFilter(SearchQuery searchQueryFilter)
-
-