Class ContentStatusQuery
- java.lang.Object
-
- com.atlassian.confluence.search.v2.query.ContentStatusQuery
-
- All Implemented Interfaces:
Expandable<SearchQuery>,SearchQuery
public class ContentStatusQuery extends Object implements SearchQuery
SearchQuery which matches content by their content status.- Since:
- 7.20
-
-
Field Summary
Fields Modifier and Type Field Description static ContentStatusQueryCURRENTstatic StringKEY
-
Constructor Summary
Constructors Constructor Description ContentStatusQuery(ContentStatus... contentStatuses)ContentStatusQuery(Collection<ContentStatus> contentStatuses)Constructs a SearchQuery which matches content by their content statuses.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchQueryexpand()Expands this query into a composite query (that composes other queries).Collection<ContentStatus>getContentStatuses()static SearchQuerygetDefaultContentStatusQuery()The default SearchQuery will only match content which has the current status.StringgetKey()ListgetParameters()List of parameters asStrings orSearchQuerys.-
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 Detail
-
KEY
public static final String KEY
- See Also:
- Constant Field Values
-
CURRENT
public static final ContentStatusQuery CURRENT
-
-
Constructor Detail
-
ContentStatusQuery
public ContentStatusQuery(Collection<ContentStatus> contentStatuses)
Constructs a SearchQuery which matches content by their content statuses. Content must match at least one of the provided content statuses.
-
ContentStatusQuery
public ContentStatusQuery(ContentStatus... contentStatuses)
-
-
Method Detail
-
getDefaultContentStatusQuery
public static SearchQuery getDefaultContentStatusQuery()
The default SearchQuery will only match content which has the current status.
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceSearchQuery- Returns:
- the plugin key
-
getParameters
public List getParameters()
Description copied from interface:SearchQueryList of parameters asStrings orSearchQuerys.- Specified by:
getParametersin interfaceSearchQuery- Returns:
Strings orSearchQuerys.
-
expand
public SearchQuery 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
-
getContentStatuses
public Collection<ContentStatus> getContentStatuses()
-
-