public class ContentTypeQuery extends Object implements SearchQuery
ContentTypeAware.getType() method.| Constructor and Description |
|---|
ContentTypeQuery(Collection<ContentTypeEnum> contentTypes)
Search for content that is one of the provided types
|
ContentTypeQuery(ContentTypeEnum contentType)
Search for a particular type of content
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
SearchQuery |
expand()
Expands this query into a composite query (that composes other queries).
|
Set<ContentTypeEnum> |
getContentTypes()
Get the content types being searched for, as strings.
|
String |
getKey() |
List<String> |
getParameters()
List of parameters as
Strings or SearchQuerys. |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetBoostpublic ContentTypeQuery(ContentTypeEnum contentType)
contentType - the type string for the content to be searched forpublic ContentTypeQuery(Collection<ContentTypeEnum> contentTypes)
contentTypes - a list of content types to search forpublic String getKey()
getKey in interface SearchQuerypublic List<String> getParameters()
SearchQueryStrings or SearchQuerys.getParameters in interface SearchQueryStrings or SearchQuerys.public Set<ContentTypeEnum> getContentTypes()
Really does the same as getParameters() but has a more apt name.
public SearchQuery expand()
SearchQueryexpand in interface Expandable<SearchQuery>expand in interface SearchQueryCopyright © 2003–2020 Atlassian. All rights reserved.