public class ContainingContentTypeQuery extends Object implements SearchQuery
ContentTypeAware.getType() method.| Constructor and Description |
|---|
ContainingContentTypeQuery(Collection<ContentTypeEnum> contentTypes)
Search for content that is one of the provided types
|
ContainingContentTypeQuery(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() |
static SearchQuery |
searchForTypesWithinContainerType(ContentTypeEnum containerType,
Set<ContentTypeEnum> contentTypes)
Helper method for the common "Find me all attachments attached to pages" query - which would
be ContainingContentTypeQuery.searchForTypesWithinContainerType(ContentTypeEnum.ATTACHMENT, ContentTypeEnum.PAGE)
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetBoostpublic ContainingContentTypeQuery(ContentTypeEnum contentType)
contentType - the type string for the content to be searched forpublic ContainingContentTypeQuery(Collection<ContentTypeEnum> contentTypes)
contentTypes - a list of content types to search forpublic static SearchQuery searchForTypesWithinContainerType(ContentTypeEnum containerType, Set<ContentTypeEnum> contentTypes)
contentTypes - the set of types of content to search forcontainerType - the type of content to look for it withinpublic 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.