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

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

public class FileExtensionQuery
extends Object
implements SearchQuery

Search for content with a particular file extension. Normally only attachments will match this query, but for safety if you only want attachments you should AND with a ContentTypeQuery in case something else in the future has file extensions.


Field Summary
static String KEY
           
 
Constructor Summary
FileExtensionQuery(String fileExtension)
          Construct a new query for a given file extension
 
Method Summary
 String getFileExtension()
           
 String getKey()
           
 List getParameters()
          List of parameters as Strings or SearchQuerys.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY

public static final String KEY
See Also:
Constant Field Values
Constructor Detail

FileExtensionQuery

public FileExtensionQuery(String fileExtension)
Construct a new query for a given file extension

Parameters:
fileExtension - the extension (without a period)
Method Detail

getKey

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

getParameters

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

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

getFileExtension

public String getFileExtension()


Copyright © 2003-2012 Atlassian. All Rights Reserved.