com.atlassian.confluence.search.v2.query
Class FileExtensionQuery
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY
public static final java.lang.String KEY
- See Also:
- Constant Field Values
FileExtensionQuery
public FileExtensionQuery(java.lang.String fileExtension)
- Construct a new query for a given file extension
- Parameters:
fileExtension
- the extension (without a period)
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
String
s or SearchQuery
s.
- Specified by:
getParameters
in interface SearchQuery
- Returns:
String
s or SearchQuery
s.
getFileExtension
public java.lang.String getFileExtension()
Copyright © 2003-2014 Atlassian. All Rights Reserved.