Class SearchQueryParameters
java.lang.Object
com.atlassian.confluence.search.service.SearchQueryParameters
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 -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a query with no search term or filtering.SearchQueryParameters
(String query) Construct a query for the specified String. -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()
getSort()
boolean
boolean
boolean
void
setAttachmentTypes
(Set<Attachment.Type> attachmentTypes) void
setCategory
(SpaceCategoryEnum category) void
setContentType
(ContentTypeEnum contentType) void
setContentTypes
(Set<ContentTypeEnum> contentTypes) void
setContributor
(ConfluenceUser contributor) Limits results to ones where the given user has been a contributorvoid
setExtraFields
(Set<String> extraFields) void
setIncludeArchivedSpaces
(boolean includeArchivedSpaces) void
void
void
setLastModified
(DateRangeQuery.DateRange lastModified) void
setOnlyArchivedSpaces
(boolean onlyArchivedSpaces) void
setPluginContentTypes
(Set<ContentTypeSearchDescriptor> pluginContentTypes) void
void
setSearchContext
(SearchContext searchContext) void
setSearchQueryFilter
(SearchQuery searchQueryFilter) void
setSort
(SearchSort sort) void
setSpaceKey
(String spaceKey) void
setSpaceKeys
(Set<String> spaceKeys) void
setUseSiteTextSearchQuery
(boolean useSiteTextSearchQuery) toString()
-
Field Details
-
PREFERRED_SPACE_KEY
- See Also:
-
-
Constructor Details
-
SearchQueryParameters
public SearchQueryParameters()Construct a query with no search term or filtering. -
SearchQueryParameters
Construct a query for the specified String.- Parameters:
query
- the String to search for.
-
-
Method Details
-
setQuery
-
setCategory
-
setSpaceKey
-
setSpaceKeys
-
setAttachmentTypes
-
setContentType
-
setContentTypes
-
setLastModified
-
setContributor
Limits results to ones where the given user has been a contributor- Parameters:
contributor
- the contributor- Since:
- 5.2
-
getQuery
-
getCategory
-
getSpaceKeys
-
getAttachmentTypes
-
getContentTypes
-
getLastModified
-
getContributor
-
getLabels
-
setLabels
-
setLabels
-
getSort
-
getSearchQueryFilter
-
setSort
-
setPluginContentTypes
-
getPluginContentTypes
-
isIncludeArchivedSpaces
public boolean isIncludeArchivedSpaces() -
setIncludeArchivedSpaces
public void setIncludeArchivedSpaces(boolean includeArchivedSpaces) -
setOnlyArchivedSpaces
public void setOnlyArchivedSpaces(boolean onlyArchivedSpaces) -
isOnlyArchivedSpaces
public boolean isOnlyArchivedSpaces() -
isUseSiteTextSearchQuery
public boolean isUseSiteTextSearchQuery() -
setUseSiteTextSearchQuery
public void setUseSiteTextSearchQuery(boolean useSiteTextSearchQuery) -
getExtraFields
-
setExtraFields
-
toString
-
setSearchQueryFilter
-
getSearchContext
-
setSearchContext
-