public class

ContentTypeQuery

extends Object
implements SearchQuery
java.lang.Object
   ↳ com.atlassian.confluence.search.v2.query.ContentTypeQuery

Class Overview

Search for content of a particular type. The string representation of a content's type is that returned by the getType() method.

Summary

Public Constructors
ContentTypeQuery(ContentTypeEnum contentType)
Search for a particular type of content
ContentTypeQuery(Collection<ContentTypeEnum> contentTypes)
Search for content that is one of the provided types
Public Methods
boolean equals(Object obj)
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()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.search.v2.SearchQuery

Public Constructors

public ContentTypeQuery (ContentTypeEnum contentType)

Search for a particular type of content

Parameters
contentType the type string for the content to be searched for

public ContentTypeQuery (Collection<ContentTypeEnum> contentTypes)

Search for content that is one of the provided types

Parameters
contentTypes a list of content types to search for

Public Methods

public boolean equals (Object obj)

public Set<ContentTypeEnum> getContentTypes ()

Get the content types 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

public String getKey ()

public List<String> getParameters ()

List of parameters as Strings or SearchQuerys.

Returns

public int hashCode ()