Package org.ametys.cms.search.query
Class ContentAttachmentQuery
- java.lang.Object
-
- org.ametys.cms.search.query.ContentAttachmentQuery
-
- All Implemented Interfaces:
Query
public class ContentAttachmentQuery extends Object implements 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 Modifier and Type Field Description protected List<String>
_contentIds
The content ids
-
Constructor Summary
Constructors Constructor Description ContentAttachmentQuery(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
build()
Build the solr query string representing the Query object.boolean
equals(Object obj)
int
hashCode()
-
-
-
Field Detail
-
_contentIds
protected List<String> _contentIds
The content ids
-
-
Constructor Detail
-
ContentAttachmentQuery
public ContentAttachmentQuery(String... contentIds)
Create an ContentAttachmentQuery which searches on resources attached to the given content.- Parameters:
contentIds
- the content ids
-
ContentAttachmentQuery
public ContentAttachmentQuery(Collection<String> contentIds)
Create an ContentAttachmentQuery which searches on resources attached to the given content.- Parameters:
contentIds
- the content ids
-
-
Method Detail
-
build
public String build() throws QuerySyntaxException
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.
-
-