Class CustomContentTypeQuery
- java.lang.Object
-
- com.atlassian.confluence.search.v2.query.CustomContentTypeQuery
-
- All Implemented Interfaces:
Expandable<SearchQuery>
,SearchQuery
public class CustomContentTypeQuery extends Object implements SearchQuery
This V2 query is used for filtering custom contents based on their types.
-
-
Constructor Summary
Constructors Constructor Description CustomContentTypeQuery(String... pluginKeys)
Search for a particular type of contentCustomContentTypeQuery(Collection<String> pluginKeys)
Search for content that is one of the provided types
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
SearchQuery
expand()
Expands this query into a composite query (that composes other queries).String
getKey()
List<String>
getParameters()
List of parameters asString
s orSearchQuery
s.Set<String>
getPluginKeys()
Get the plugin keys being searched for, as strings.int
hashCode()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.search.v2.SearchQuery
getBoost, getSubClauses
-
-
-
-
Constructor Detail
-
CustomContentTypeQuery
public CustomContentTypeQuery(String... pluginKeys)
Search for a particular type of content- Parameters:
pluginKeys
- the plugin keys of the content to be searched for
-
CustomContentTypeQuery
public CustomContentTypeQuery(Collection<String> pluginKeys)
Search for content that is one of the provided types- Parameters:
pluginKeys
- a collection of the plugin keys of the content to be searched for
-
-
Method Detail
-
getKey
public String getKey()
- Specified by:
getKey
in interfaceSearchQuery
- Returns:
- the plugin key
-
getParameters
public List<String> getParameters()
Description copied from interface:SearchQuery
List of parameters asString
s orSearchQuery
s.- Specified by:
getParameters
in interfaceSearchQuery
- Returns:
String
s orSearchQuery
s.
-
getPluginKeys
public Set<String> getPluginKeys()
Get the plugin keys being searched for, as strings.Really does the same as
getParameters()
but has a more apt name.- Returns:
- a list of the content types being searched for, as strings
-
expand
public SearchQuery 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
-
-