Package org.ametys.cms.search.query
Class ContentAttachmentQuery
java.lang.Object
org.ametys.cms.search.query.ContentAttachmentQuery
- All Implemented Interfaces:
Query
Query testing the contentId of a resource (content attachment).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContentAttachmentQuery
(String... contentIds) Create an ContentAttachmentQuery which searches on resources attached to the given content.ContentAttachmentQuery
(Collection<String> contentIds) Create an ContentAttachmentQuery which searches on resources attached to the given content. -
Method Summary
-
Field Details
-
_contentIds
The content ids
-
-
Constructor Details
-
ContentAttachmentQuery
Create an ContentAttachmentQuery which searches on resources attached to the given content.- Parameters:
contentIds
- the content ids
-
ContentAttachmentQuery
Create an ContentAttachmentQuery which searches on resources attached to the given content.- Parameters:
contentIds
- the content ids
-
-
Method Details
-
build
Description copied from interface:Query
Build the solr query string representing the Query object.- Specified by:
build
in interfaceQuery
- Returns:
- the solr query string representing the Query object.
- Throws:
QuerySyntaxException
- if the query can't be built because of a syntax error.
-
hashCode
-
equals
-