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 java.lang.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 java.lang.String KEY
           
 
Constructor Summary
FileExtensionQuery(java.lang.String fileExtension)
          Construct a new query for a given file extension
 
Method Summary
 java.lang.String getFileExtension()
           
 java.lang.String getKey()
           
 java.util.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 java.lang.String KEY
See Also:
Constant Field Values
Constructor Detail

FileExtensionQuery

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

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

getKey

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

getParameters

public java.util.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 java.lang.String getFileExtension()


Copyright © 2003-2014 Atlassian. All Rights Reserved.