Package org.ametys.cms.search.query
Class UsersQuery
java.lang.Object
org.ametys.cms.search.query.AbstractOperatorQuery<List<T>>
org.ametys.cms.search.query.AbstractMultivaluedQuery<UserIdentity>
org.ametys.cms.search.query.UsersQuery
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 interface org.ametys.cms.search.query.Query
BOOL_FILTER, BOOL_MUST, BOOL_MUST_NOT, BOOL_SHOULD
-
Constructor Summary
ConstructorDescriptionUsersQuery
(String fieldPath, List<UserIdentity> users) Build a user query.UsersQuery
(String fieldPath, Query.Operator operator, List<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
Modifier and TypeMethodDescriptionComputes the value for Solr clientMethods inherited from class org.ametys.cms.search.query.AbstractMultivaluedQuery
build, buildAsJson, equals, hashCode
Methods inherited from class org.ametys.cms.search.query.AbstractOperatorQuery
getFieldName, getOperator, getValue, rewrite, valueForQuery
-
Constructor Details
-
UsersQuery
Build a user query.- Parameters:
fieldPath
- the field's pathusers
- The users to test.
-
UsersQuery
Build a user query.- Parameters:
fieldPath
- the field's pathusers
- The users to test.
-
UsersQuery
Build a user query.- Parameters:
fieldPath
- the field's pathoperator
- The query operator (can be EQ or NE).users
- The users to test.
-
UsersQuery
Build a user query.- Parameters:
fieldPath
- the field's pathoperator
- The query operator (can be EQ or NE).users
- The users to test.
-
-
Method Details
-
singleValueForQuery
Description copied from class:AbstractMultivaluedQuery
Computes the value for Solr client- Overrides:
singleValueForQuery
in classAbstractMultivaluedQuery<UserIdentity>
- Parameters:
user
- the typed value- Returns:
- the value, adapted for Solr
-