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()booleanbooleanbooleanvoidsetAttachmentTypes(Set<Attachment.Type> attachmentTypes) voidsetCategory(SpaceCategoryEnum category) voidsetContentType(ContentTypeEnum contentType) voidsetContentTypes(Set<ContentTypeEnum> contentTypes) voidsetContributor(ConfluenceUser contributor) Limits results to ones where the given user has been a contributorvoidsetExtraFields(Set<String> extraFields) voidsetIncludeArchivedSpaces(boolean includeArchivedSpaces) voidvoidvoidsetLastModified(DateRangeQuery.DateRange lastModified) voidsetOnlyArchivedSpaces(boolean onlyArchivedSpaces) voidsetPluginContentTypes(Set<ContentTypeSearchDescriptor> pluginContentTypes) voidvoidsetSearchContext(SearchContext searchContext) voidsetSearchQueryFilter(SearchQuery searchQueryFilter) voidsetSort(SearchSort sort) voidsetSpaceKey(String spaceKey) voidsetSpaceKeys(Set<String> spaceKeys) voidsetUseSiteTextSearchQuery(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
-