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
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type (validated, non validated or both) of comments to include forCommentQueryNested 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
ConstructorsConstructorDescriptionCommentQuery(CommentQuery.CommentInclusion commentInclusion, Query.Operator operator) Constructor -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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 withvalidatedcomments, or only contents withnon validatedcomments, orboth)operator- The operator. OnlyQuery.Operator.EQandQuery.Operator.NEare allowed.
-
-
Method Details
-
build
Description copied from interface:QueryBuild the solr query string representing the Query object.- Specified by:
buildin 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
-