public class UserCollectionRequest extends BaseCollectionRequest<UserCollectionResponse,IUserCollectionPage> implements IUserCollectionRequest
| Constructor and Description |
|---|
UserCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of User
|
| Modifier and Type | Method and Description |
|---|---|
IUserCollectionPage |
buildFromResponse(UserCollectionResponse response) |
IUserCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IUserCollectionPage |
get() |
void |
get(ICallback<IUserCollectionPage> callback) |
User |
post(User newUser) |
void |
post(User newUser,
ICallback<User> callback) |
IUserCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IUserCollectionRequest |
top(int value)
Sets the top value for the request
|
addFunctionOption, addHeader, addQueryOption, getBaseRequest, getCollectionPageClass, getDelay, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, post, send, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCachespublic UserCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestpublic void get(ICallback<IUserCollectionPage> callback)
get in interface IUserCollectionRequestpublic IUserCollectionPage get() throws ClientException
get in interface IUserCollectionRequestClientExceptionpublic void post(User newUser, ICallback<User> callback)
post in interface IUserCollectionRequestpublic User post(User newUser) throws ClientException
post in interface IUserCollectionRequestClientExceptionpublic IUserCollectionRequest expand(java.lang.String value)
expand in interface IUserCollectionRequestvalue - the expand clausepublic IUserCollectionRequest select(java.lang.String value)
select in interface IUserCollectionRequestvalue - the select clausepublic IUserCollectionRequest top(int value)
top in interface IUserCollectionRequestvalue - the max number of items to returnpublic IUserCollectionPage buildFromResponse(UserCollectionResponse response)