Package org.ametys.cms.search.query
Class UsersQuery
- java.lang.Object
-
- org.ametys.cms.search.query.AbstractFieldQuery
-
- org.ametys.cms.search.query.UsersQuery
-
- All Implemented Interfaces:
Query
public class UsersQuery extends AbstractFieldQuery
Query
testing users.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator
-
-
Field Summary
-
Fields inherited from class org.ametys.cms.search.query.AbstractFieldQuery
_fieldPath
-
-
Constructor Summary
Constructors Constructor Description UsersQuery(String fieldPath, Collection<UserIdentity> users)
Build a user query.UsersQuery(String fieldPath, Query.Operator operator, Collection<UserIdentity> users)
Build a user query.UsersQuery(String fieldPath, Query.Operator operator, UserIdentity... users)
Build a user query.UsersQuery(String fieldPath, UserIdentity... users)
Build a user query.
-
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)
int
hashCode()
-
Methods inherited from class org.ametys.cms.search.query.AbstractFieldQuery
getFieldPath
-
-
-
-
Constructor Detail
-
UsersQuery
public UsersQuery(String fieldPath, UserIdentity... users)
Build a user query.- Parameters:
fieldPath
- the field's pathusers
- The users to test.
-
UsersQuery
public UsersQuery(String fieldPath, Collection<UserIdentity> users)
Build a user query.- Parameters:
fieldPath
- the field's pathusers
- The users to test.
-
UsersQuery
public UsersQuery(String fieldPath, Query.Operator operator, UserIdentity... users)
Build a user query.- Parameters:
fieldPath
- the field's pathoperator
- The query operator (can be EQ or NE).users
- The users to test.
-
UsersQuery
public UsersQuery(String fieldPath, Query.Operator operator, Collection<UserIdentity> users)
Build a user query.- Parameters:
fieldPath
- the field's pathoperator
- The query operator (can be EQ or NE).users
- The users to test.
-
-
Method Detail
-
build
public String build() throws QuerySyntaxException
Description copied from interface:Query
Build the solr query string representing the Query object.- Returns:
- the solr query string representing the Query object.
- Throws:
QuerySyntaxException
- if the query can't be built because of a syntax error.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractFieldQuery
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractFieldQuery
-
-