|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.search.v2.query.ContainingContentTypeQuery
public class 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 ContentTypeAware.getType()
method.
Constructor Summary | |
---|---|
ContainingContentTypeQuery(Collection<ContentTypeEnum> contentTypes)
Search for content that is one of the provided types |
|
ContainingContentTypeQuery(ContentTypeEnum contentType)
Search for a particular type of content |
Method Summary | |
---|---|
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 String s or SearchQuery s. |
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.queryForTypeWithinContainerType(ContentTypeEnum.ATTACHMENT, ContentTypeEnum.PAGE) |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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 forMethod Detail |
---|
public 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 within
public String getKey()
getKey
in interface SearchQuery
public List<String> getParameters()
SearchQuery
String
s or SearchQuery
s.
getParameters
in interface SearchQuery
String
s or SearchQuery
s.public Set<ContentTypeEnum> getContentTypes()
getParameters()
but has a more apt name.
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |