Class FileExtensionQuery
java.lang.Object
com.atlassian.confluence.search.v2.query.FileExtensionQuery
- All Implemented Interfaces:
Expandable<SearchQuery>,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
FieldsFields inherited from interface com.atlassian.confluence.search.v2.SearchQuery
DEFAULT_BOOST -
Constructor Summary
ConstructorsConstructorDescriptionFileExtensionQuery(String fileExtension) Construct a new query for a given file extension -
Method Summary
Modifier and TypeMethodDescriptionbooleanexpand()Expands this query into a composite query (that composes other queries).getKey()List of parameters asStrings orSearchQuerys.inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.search.v2.SearchQuery
getBoost, getSubClauses
-
Field Details
-
KEY
- See Also:
-
-
Constructor Details
-
FileExtensionQuery
Construct a new query for a given file extension- Parameters:
fileExtension- the extension (without a period)
-
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceSearchQuery- Returns:
- the plugin key
-
getParameters
Description copied from interface:SearchQueryList of parameters asStrings orSearchQuerys.- Specified by:
getParametersin interfaceSearchQuery- Returns:
Strings orSearchQuerys.
-
getFileExtension
-
expand
Description copied from interface:SearchQueryExpands this query into a composite query (that composes other queries). By overriding this method, one can specify a new query that is composition of the behaviour of the composed queries.- Specified by:
expandin interfaceExpandable<SearchQuery>- Specified by:
expandin interfaceSearchQuery- Returns:
- a query
-
equals
-
hashCode
public int hashCode()
-