Package com.auth0.client.mgmt.filter
Class UserFilter
java.lang.Object
com.auth0.client.mgmt.filter.BaseFilter
com.auth0.client.mgmt.filter.FieldsFilter
com.auth0.client.mgmt.filter.QueryFilter
com.auth0.client.mgmt.filter.UserFilter
Class used to filter the results received when calling the Users endpoint. Related to the
UsersEntity
entity.
This class is not thread-safe.
- See Also:
-
Field Summary
Fields inherited from class com.auth0.client.mgmt.filter.QueryFilter
KEY_QUERY
Fields inherited from class com.auth0.client.mgmt.filter.BaseFilter
parameters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionwithConnection
(String connection) Connection filter.withFields
(String fields, boolean includeFields) Only retrieve certain fields from the item.withPage
(int pageNumber, int amountPerPage) Filter by pageFilter by a querywithSearchEngine
(String searchEngineVersion) Selects which Search Engine version to use when querying for users.Sort the querywithTotals
(boolean includeTotals) Include the query summaryMethods inherited from class com.auth0.client.mgmt.filter.BaseFilter
getAsMap
-
Constructor Details
-
UserFilter
public UserFilter()Creates a new instance using the latest search engine version.Since version 1.12.0 this SDK no longer specifies a search engine version by default. If you need to use a version different than the latest one, please set it explicitly by calling
withSearchEngine(String)
. See the latest user search doc: https://auth0.com/docs/users/search/
-
-
Method Details
-
withTotals
Description copied from class:QueryFilter
Include the query summary- Overrides:
withTotals
in classQueryFilter
- Parameters:
includeTotals
- whether to include or not the query summary.- Returns:
- this filter instance
-
withSearchEngine
Selects which Search Engine version to use when querying for users.See the latest user search doc: https://auth0.com/docs/users/search/
- Parameters:
searchEngineVersion
- the search engine version to use on queries.- Returns:
- this filter instance
-
withQuery
Filter by a query- Overrides:
withQuery
in classQueryFilter
- Parameters:
query
- the query expression to use following the syntax defined at https://auth0.com/docs/users/search/v3/query-syntax- Returns:
- this filter instance
-
withSort
Description copied from class:QueryFilter
Sort the query- Overrides:
withSort
in classQueryFilter
- Parameters:
sort
- the field to use for sorting. Use 'field:order' where order is 1 for ascending and -1 for descending.- Returns:
- this filter instance
-
withPage
Description copied from class:QueryFilter
Filter by page- Overrides:
withPage
in classQueryFilter
- Parameters:
pageNumber
- the page number to retrieve.amountPerPage
- the amount of items per page to retrieve.- Returns:
- this filter instance
-
withFields
Description copied from class:FieldsFilter
Only retrieve certain fields from the item.- Overrides:
withFields
in classQueryFilter
- Parameters:
fields
- a list of comma separated fields to retrieve.includeFields
- whether to include or exclude in the response the fields that were given.- Returns:
- this filter instance
-
withConnection
Connection filter. Only applies when using search_engine=v1. To filter by connection with search_engine=v2|v3, use q=identities.connection:"connection_name"- Parameters:
connection
- connection to be filtered with- Returns:
- this filter instance
-