Class AttachmentTypeQuery
- java.lang.Object
-
- com.atlassian.confluence.search.v2.query.AbstractParameterListQuery<Attachment.Type>
-
- com.atlassian.confluence.search.v2.query.AttachmentTypeQuery
-
- All Implemented Interfaces:
Expandable<SearchQuery>
,SearchQuery
public class AttachmentTypeQuery extends AbstractParameterListQuery<Attachment.Type>
Search for attachments of a particular type or types.
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.search.v2.query.AbstractParameterListQuery
parameters
-
-
Constructor Summary
Constructors Constructor Description AttachmentTypeQuery(Attachment.Type fileType)
Search for attachments of a given type.AttachmentTypeQuery(Set<Attachment.Type> fileTypes)
Search for attachments within any of a collection of types.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchQuery
expand()
Expands this query into a composite query (that composes other queries).String
getKey()
-
Methods inherited from class com.atlassian.confluence.search.v2.query.AbstractParameterListQuery
equals, getParameters, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.search.v2.SearchQuery
getBoost, getSubClauses
-
-
-
-
Constructor Detail
-
AttachmentTypeQuery
public AttachmentTypeQuery(Attachment.Type fileType)
Search for attachments of a given type.- Parameters:
fileType
- the type to search for
-
AttachmentTypeQuery
public AttachmentTypeQuery(Set<Attachment.Type> fileTypes)
Search for attachments within any of a collection of types.- Parameters:
fileTypes
- a set of types to search for
-
-
Method Detail
-
getKey
public String getKey()
- Returns:
- the plugin key
-
expand
public SearchQuery expand()
Description copied from interface:SearchQuery
Expands 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.- Returns:
- a query
-
-