Package org.ametys.cms.search.query
Class AbstractGroupsQuery
- java.lang.Object
-
- org.ametys.cms.search.query.AbstractGroupsQuery
-
- All Implemented Interfaces:
Query
public abstract class AbstractGroupsQuery extends Object implements Query
Query
testing groups.
-
-
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 Collection<GroupIdentity>
_groups
private Query.Operator
_operator
-
Constructor Summary
Constructors Constructor Description AbstractGroupsQuery(Collection<GroupIdentity> groups)
Build a group query.AbstractGroupsQuery(Query.Operator operator, Collection<GroupIdentity> groups)
Build a group query.AbstractGroupsQuery(Query.Operator operator, GroupIdentity... groups)
Build a group query.AbstractGroupsQuery(GroupIdentity... groups)
Build a group query.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
build()
Build the solr query string representing the Query object.boolean
equals(Object obj)
protected abstract String
getField()
The query field.int
hashCode()
-
-
-
Field Detail
-
_groups
private Collection<GroupIdentity> _groups
-
_operator
private Query.Operator _operator
-
-
Constructor Detail
-
AbstractGroupsQuery
public AbstractGroupsQuery(GroupIdentity... groups)
Build a group query.- Parameters:
groups
- The groups to test.
-
AbstractGroupsQuery
public AbstractGroupsQuery(Collection<GroupIdentity> groups)
Build a group query.- Parameters:
groups
- The groups to test.
-
AbstractGroupsQuery
public AbstractGroupsQuery(Query.Operator operator, GroupIdentity... groups)
Build a group query.- Parameters:
operator
- The query operator (can be EQ or NE).groups
- The groups to test.
-
AbstractGroupsQuery
public AbstractGroupsQuery(Query.Operator operator, Collection<GroupIdentity> groups)
Build a group query.- Parameters:
operator
- The query operator (can be EQ or NE).groups
- The groups to test.
-
-
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.
-
-