java.lang.Object | |
↳ | com.atlassian.confluence.search.v2.query.ContainingContentTypeQuery |
Search for an entity contained within content of a particular type. For example, a comment or attachment
on a page would be within a page, while a comment or attachment on a blogpost would not. The string representation
of a content's type is that returned by the getType()
method.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Search for a particular type of content
| |||||||||||
Search for content that is one of the provided types
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the content types being searched for, as strings.
| |||||||||||
List of parameters as
String s or SearchQuery s. | |||||||||||
Helper method for the common "Find me all attachments attached to pages" query - which would
be ContainingContentTypeQuery.queryForTypeWithinContainerType(ContentTypeEnum.ATTACHMENT, ContentTypeEnum.PAGE)
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.confluence.search.v2.SearchQuery
|
Search for a particular type of content
contentType | the type string for the content to be searched for |
---|
Search for content that is one of the provided types
contentTypes | a list of content types to search for |
---|
Get the content types being searched for, as strings.
Really does the same as getParameters()
but has a more apt name.
List of parameters as String
s or SearchQuery
s.
String
s or SearchQuery
s.
Helper method for the common "Find me all attachments attached to pages" query - which would be ContainingContentTypeQuery.queryForTypeWithinContainerType(ContentTypeEnum.ATTACHMENT, ContentTypeEnum.PAGE)
containerType | the type of content to look for it within |
---|---|
contentTypes | the set of types of content to search for |