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 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY
public static final String KEY
- See Also:
- Constant Field Values
FileExtensionQuery
public FileExtensionQuery(String fileExtension)
- Construct a new query for a given file extension
- Parameters:
fileExtension - the extension (without a period)
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–2015 Atlassian. All rights reserved.