com.atlassian.confluence.search.v2.query
Class CustomContentTypeQuery

java.lang.Object
  extended by com.atlassian.confluence.search.v2.query.CustomContentTypeQuery
All Implemented Interfaces:
SearchQuery

public class CustomContentTypeQuery
extends Object
implements SearchQuery


Constructor Summary
CustomContentTypeQuery(Collection<String> pluginKeys)
          Search for content that is one of the provided types
CustomContentTypeQuery(String... pluginKeys)
          Search for a particular type of content
 
Method Summary
 boolean equals(Object o)
           
 String getKey()
           
 List<String> getParameters()
          List of parameters as Strings or SearchQuerys.
 Set<String> getPluginKeys()
          Get the plugin keys being searched for, as strings.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomContentTypeQuery

public CustomContentTypeQuery(String... pluginKeys)
Search for a particular type of content

Parameters:
pluginKeys - the plugin keys of the content to be searched for

CustomContentTypeQuery

public CustomContentTypeQuery(Collection<String> pluginKeys)
Search for content that is one of the provided types

Parameters:
pluginKeys - a collection of the plugin keys of the content to be searched for
Method Detail

getKey

public String getKey()
Specified by:
getKey in interface SearchQuery
Returns:
the plugin key

getParameters

public List<String> getParameters()
Description copied from interface: SearchQuery
List of parameters as Strings or SearchQuerys.

Specified by:
getParameters in interface SearchQuery
Returns:
Strings or SearchQuerys.

getPluginKeys

public Set<String> getPluginKeys()
Get the plugin keys 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

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003-2012 Atlassian. All Rights Reserved.