Package org.ametys.cms.search.query
Class ContentTypeOrMixinTypeQuery
java.lang.Object
org.ametys.cms.search.query.ContentTypeOrMixinTypeQuery
- All Implemented Interfaces:
Query
Represents a
Query
testing the content types or the mixins of contents.-
Nested Class Summary
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
ConstructorDescriptionContentTypeOrMixinTypeQuery
(String... ids) Build a ContentTypeOrMixinTypeQuery.Build a ContentTypeOrMixinTypeQuery.ContentTypeOrMixinTypeQuery
(Query.Operator operator, String... ids) Build a ContentTypeOrMixinTypeQuery.ContentTypeOrMixinTypeQuery
(Query.Operator operator, Collection<String> ids) Build a ContentTypeOrMixinTypeQuery. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the solr query string representing the Query object.Build the solr query representing the Query object.
The return type may be either String or Map<String, Object> following the Solr JSON Query DSL.boolean
getIds()
Get the content type or mixin ids.Get the operator.int
hashCode()
rewrite()
Rewrite this Query to allow further optimisations.
-
Constructor Details
-
ContentTypeOrMixinTypeQuery
Build a ContentTypeOrMixinTypeQuery.- Parameters:
ids
- the content type ids.
-
ContentTypeOrMixinTypeQuery
Build a ContentTypeOrMixinTypeQuery.- Parameters:
ids
- the content type ids.
-
ContentTypeOrMixinTypeQuery
Build a ContentTypeOrMixinTypeQuery.- Parameters:
operator
- the operator.ids
- the content type ids.
-
ContentTypeOrMixinTypeQuery
Build a ContentTypeOrMixinTypeQuery.- Parameters:
operator
- the operator.ids
- the content type ids.
-
-
Method Details
-
getOperator
Get the operator.- Returns:
- the operator
-
getIds
Get the content type or mixin ids.- Returns:
- the content type or mixin ids.
-
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.
-
buildAsJson
Description copied from interface:Query
Build the solr query representing the Query object.
The return type may be either String or Map<String, Object> following the Solr JSON Query DSL.- Specified by:
buildAsJson
in interfaceQuery
- Returns:
- the solr query representing the Query object.
- Throws:
QuerySyntaxException
- if the query can't be built because of a syntax error.
-
rewrite
Description copied from interface:Query
Rewrite this Query to allow further optimisations. -
hashCode
-
equals
-