public class UsersQuery extends AbstractFieldQuery
Query
testing users.Query.LogicalOperator, Query.Operator
Modifier and Type | Field and Description |
---|---|
private Query.Operator |
_operator |
private Collection<UserIdentity> |
_users |
_fieldPath
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
String |
build()
Build the solr query string representing the Query object.
|
getFieldPath
private Collection<UserIdentity> _users
private Query.Operator _operator
public UsersQuery(String fieldPath, UserIdentity... users)
fieldPath
- the field's pathusers
- The users to test.public UsersQuery(String fieldPath, Collection<UserIdentity> users)
fieldPath
- the field's pathusers
- The users to test.public UsersQuery(String fieldPath, Query.Operator operator, UserIdentity... users)
fieldPath
- the field's pathoperator
- The query operator (can be EQ or NE).users
- The users to test.public UsersQuery(String fieldPath, Query.Operator operator, Collection<UserIdentity> users)
fieldPath
- the field's pathoperator
- The query operator (can be EQ or NE).users
- The users to test.public String build() throws QuerySyntaxException
Query
QuerySyntaxException
- if the query can't be built because of a syntax error.