public class

FileExtensionQuery

extends Object
implements SearchQuery
java.lang.Object
   ↳ com.atlassian.confluence.search.v2.query.FileExtensionQuery

Class Overview

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.

Summary

Constants
String KEY
Public Constructors
FileExtensionQuery(String fileExtension)
Construct a new query for a given file extension
Public Methods
String getFileExtension()
String getKey()
List getParameters()
List of parameters as Strings or SearchQuerys.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.search.v2.SearchQuery

Constants

public static final String KEY

Constant Value: "fileExtension"

Public Constructors

public FileExtensionQuery (String fileExtension)

Construct a new query for a given file extension

Parameters
fileExtension the extension (without a period)

Public Methods

public String getFileExtension ()

public String getKey ()

public List getParameters ()

List of parameters as Strings or SearchQuerys.

Returns