public class PermissionCollectionRequest extends BaseCollectionRequest<PermissionCollectionResponse,IPermissionCollectionPage> implements IPermissionCollectionRequest
| Constructor and Description |
|---|
PermissionCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Permission
|
| Modifier and Type | Method and Description |
|---|---|
IPermissionCollectionPage |
buildFromResponse(PermissionCollectionResponse response) |
IPermissionCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IPermissionCollectionPage |
get() |
void |
get(ICallback<IPermissionCollectionPage> callback) |
Permission |
post(Permission newPermission) |
void |
post(Permission newPermission,
ICallback<Permission> callback) |
IPermissionCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IPermissionCollectionRequest |
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 PermissionCollectionRequest(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<IPermissionCollectionPage> callback)
get in interface IPermissionCollectionRequestpublic IPermissionCollectionPage get() throws ClientException
get in interface IPermissionCollectionRequestClientExceptionpublic void post(Permission newPermission, ICallback<Permission> callback)
post in interface IPermissionCollectionRequestpublic Permission post(Permission newPermission) throws ClientException
post in interface IPermissionCollectionRequestClientExceptionpublic IPermissionCollectionRequest expand(java.lang.String value)
expand in interface IPermissionCollectionRequestvalue - the expand clausepublic IPermissionCollectionRequest select(java.lang.String value)
select in interface IPermissionCollectionRequestvalue - the select clausepublic IPermissionCollectionRequest top(int value)
top in interface IPermissionCollectionRequestvalue - the max number of items to returnpublic IPermissionCollectionPage buildFromResponse(PermissionCollectionResponse response)