Class ContentStatusQuery
java.lang.Object
com.atlassian.confluence.search.v2.query.ContentStatusQuery
- All Implemented Interfaces:
Expandable<SearchQuery>
,SearchQuery
SearchQuery which matches content by their content status.
- Since:
- 7.20
-
Field Summary
Fields inherited from interface com.atlassian.confluence.search.v2.SearchQuery
DEFAULT_BOOST
-
Constructor Summary
ConstructorDescriptionContentStatusQuery
(ContentStatus... contentStatuses) ContentStatusQuery
(Collection<ContentStatus> contentStatuses) Constructs a SearchQuery which matches content by their content statuses. -
Method Summary
Modifier and TypeMethodDescriptionexpand()
Expands this query into a composite query (that composes other queries).static SearchQuery
The default SearchQuery will only match content which has the current status.getKey()
List of parameters asString
s orSearchQuery
s.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.search.v2.SearchQuery
getBoost, getSubClauses
-
Field Details
-
KEY
- See Also:
-
CURRENT
-
-
Constructor Details
-
ContentStatusQuery
Constructs a SearchQuery which matches content by their content statuses. Content must match at least one of the provided content statuses. -
ContentStatusQuery
-
-
Method Details
-
getDefaultContentStatusQuery
The default SearchQuery will only match content which has the current status. -
getKey
- Specified by:
getKey
in interfaceSearchQuery
- Returns:
- the plugin key
-
getParameters
Description copied from interface:SearchQuery
List of parameters asString
s orSearchQuery
s.- Specified by:
getParameters
in interfaceSearchQuery
- Returns:
String
s orSearchQuery
s.
-
expand
Description copied from interface:SearchQuery
Expands 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:
expand
in interfaceExpandable<SearchQuery>
- Specified by:
expand
in interfaceSearchQuery
- Returns:
- a query
-
getContentStatuses
-