Class ContentCategoryQuery
java.lang.Object
com.atlassian.confluence.search.v2.query.ContentCategoryQuery
- All Implemented Interfaces:
Expandable<SearchQuery>,SearchQuery
SearchQuery that finds content where content type is from the list of specified categories
- Since:
- 7.20
-
Field Summary
FieldsFields inherited from interface com.atlassian.confluence.search.v2.SearchQuery
DEFAULT_BOOST -
Constructor Summary
ConstructorsConstructorDescriptionContentCategoryQuery(Category contentCategory) Construct aSearchQuerythat finds content matching a givenCategoryContentCategoryQuery(Set<Category> contentCategories) Construct aSearchQuerythat finds content matching at least one of the specified Set ofCategory -
Method Summary
Modifier and TypeMethodDescriptionexpand()Expands this query into a composite query (that composes other queries).getKey()List of parameters asStrings orSearchQuerys.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.search.v2.SearchQuery
getBoost, getSubClauses
-
Field Details
-
KEY
- See Also:
-
-
Constructor Details
-
ContentCategoryQuery
Construct aSearchQuerythat finds content matching a givenCategory- Parameters:
contentCategory- Category to match
-
ContentCategoryQuery
Construct aSearchQuerythat finds content matching at least one of the specified Set ofCategory- Parameters:
contentCategories- a Set ofCategory- Throws:
IllegalArgumentException- if contentCategories list is empty
-
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceSearchQuery- Returns:
- the plugin key
-
getParameters
Description copied from interface:SearchQueryList of parameters asStrings orSearchQuerys.- Specified by:
getParametersin interfaceSearchQuery- Returns:
Strings orSearchQuerys.
-
expand
Description copied from interface:SearchQueryExpands this query into a composite query (that composes other queries). By overriding this method, one can specify a new query that is composition of the behaviour of the composed queries.- Specified by:
expandin interfaceExpandable<SearchQuery>- Specified by:
expandin interfaceSearchQuery- Returns:
- a query
-