Package org.ametys.cms.search.query
Class CommentQuery
java.lang.Object
org.ametys.cms.search.query.CommentQuery
- All Implemented Interfaces:
Query
Represents a
Query
testing if contents have comments.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The type (validated, non validated or both) of comments to include forCommentQuery
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator
-
Field Summary
Fields inherited from interface org.ametys.cms.search.query.Query
BOOL_FILTER, BOOL_MUST, BOOL_MUST_NOT, BOOL_SHOULD
-
Constructor Summary
ConstructorDescriptionCommentQuery
(CommentQuery.CommentInclusion commentInclusion, Query.Operator operator) Constructor -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.cms.search.query.Query
buildAsJson, rewrite, toString
-
Constructor Details
-
CommentQuery
Constructor- Parameters:
commentInclusion
- The type of comments to include in search (request only contents withvalidated
comments, or only contents withnon validated
comments, orboth
)operator
- The operator. OnlyQuery.Operator.EQ
andQuery.Operator.NE
are allowed.
-
-
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
-