public class ListUsers extends Request
Modifier and Type | Field and Description |
---|---|
protected java.lang.Long |
count
The number of users to be listed.
|
protected java.lang.String |
filter
Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to filter users to be listed.
|
protected java.lang.String[] |
includedProperties
Allows to specify, which properties should be returned when `returnProperties=true` is set.
|
protected java.lang.Long |
offset
Specifies the number of users to skip (ordered by `userId`).
|
protected java.lang.Boolean |
returnProperties
With `returnProperties=true`, property values of the listed users are returned along with their IDs in a JSON dictionary.
|
Constructor and Description |
---|
ListUsers()
Construct the request
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getBodyParameters()
Get body parameters
|
long |
getCount() |
java.lang.String |
getFilter() |
HTTPMethod |
getHTTPMethod() |
java.lang.String[] |
getIncludedProperties() |
long |
getOffset() |
java.lang.String |
getPath() |
java.util.Map<java.lang.String,java.lang.Object> |
getQueryParameters()
Get query parameters
|
boolean |
getReturnProperties() |
ListUsers |
setCount(long count) |
ListUsers |
setFilter(java.lang.String filter) |
ListUsers |
setIncludedProperties(java.lang.String[] includedProperties) |
ListUsers |
setOffset(long offset) |
ListUsers |
setReturnProperties(boolean returnProperties) |
getEnsureHttps, getTimeout, setTimeout
protected java.lang.String filter
protected java.lang.Long count
protected java.lang.Long offset
protected java.lang.Boolean returnProperties
protected java.lang.String[] includedProperties
public ListUsers setFilter(java.lang.String filter)
filter
- Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to filter users to be listed. Only the users for which the expression is *true* will be returned.public ListUsers setCount(long count)
count
- The number of users to be listed.public ListUsers setOffset(long offset)
offset
- Specifies the number of users to skip (ordered by `userId`).public ListUsers setReturnProperties(boolean returnProperties)
returnProperties
- With `returnProperties=true`, property values of the listed users are returned along with their IDs in a JSON dictionary.
Example response:
```
[
{
"userId": "user-81",
"country": "US",
"sex": "M"
},
{
"userId": "user-314",
"country": "CAN",
"sex": "F"
}
]
```public ListUsers setIncludedProperties(java.lang.String[] includedProperties)
includedProperties
- Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
Example response for `includedProperties=country`:
```
[
{
"userId": "user-81",
"country": "US"
},
{
"userId": "user-314",
"country": "CAN"
}
]
```public java.lang.String getFilter()
public long getCount()
public long getOffset()
public boolean getReturnProperties()
public java.lang.String[] getIncludedProperties()
public HTTPMethod getHTTPMethod()
getHTTPMethod
in class Request
public java.lang.String getPath()
public java.util.Map<java.lang.String,java.lang.Object> getQueryParameters()
getQueryParameters
in class Request
public java.util.Map<java.lang.String,java.lang.Object> getBodyParameters()
getBodyParameters
in class Request