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, setUseCaches
public 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 IPermissionCollectionRequest
public IPermissionCollectionPage get() throws ClientException
get
in interface IPermissionCollectionRequest
ClientException
public void post(Permission newPermission, ICallback<Permission> callback)
post
in interface IPermissionCollectionRequest
public Permission post(Permission newPermission) throws ClientException
post
in interface IPermissionCollectionRequest
ClientException
public IPermissionCollectionRequest expand(java.lang.String value)
expand
in interface IPermissionCollectionRequest
value
- the expand clausepublic IPermissionCollectionRequest select(java.lang.String value)
select
in interface IPermissionCollectionRequest
value
- the select clausepublic IPermissionCollectionRequest top(int value)
top
in interface IPermissionCollectionRequest
value
- the max number of items to returnpublic IPermissionCollectionPage buildFromResponse(PermissionCollectionResponse response)