Package org.ametys.cms.search.query
Class MixinTypeQuery
- java.lang.Object
-
- org.ametys.cms.search.query.MixinTypeQuery
-
- All Implemented Interfaces:
Query
public class MixinTypeQuery extends Object implements Query
Represents aQuery
testing the mixin types of contents.
-
-
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 private List<String>
_ids
private Query.Operator
_operator
-
Constructor Summary
Constructors Constructor Description MixinTypeQuery(String... ids)
Build a MixinTypeQuery.MixinTypeQuery(Collection<String> ids)
Build a MixinTypeQuery.MixinTypeQuery(Query.Operator operator, String... ids)
Build a MixinTypeQuery.MixinTypeQuery(Query.Operator operator, Collection<String> ids)
Build a MixinTypeQuery.
-
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)
List<String>
getIds()
Get the mixin type ids.Query.Operator
getOperator()
Get the operator.int
hashCode()
-
-
-
Field Detail
-
_operator
private Query.Operator _operator
-
-
Constructor Detail
-
MixinTypeQuery
public MixinTypeQuery(String... ids)
Build a MixinTypeQuery.- Parameters:
ids
- the mixin type ids.
-
MixinTypeQuery
public MixinTypeQuery(Collection<String> ids)
Build a MixinTypeQuery.- Parameters:
ids
- the mixin type ids.
-
MixinTypeQuery
public MixinTypeQuery(Query.Operator operator, String... ids)
Build a MixinTypeQuery.- Parameters:
operator
- the operator.ids
- the mixin type ids.
-
MixinTypeQuery
public MixinTypeQuery(Query.Operator operator, Collection<String> ids)
Build a MixinTypeQuery.- Parameters:
operator
- the operator.ids
- the mixin type ids.
-
-
Method Detail
-
getOperator
public Query.Operator getOperator()
Get the operator.- Returns:
- the operator
-
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.
-
-