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
-
-
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()
-
-
-
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.
-
-