public interface ScopeClient extends SearchableResource<Scope>, RetrievableResource<Scope>
| Modifier and Type | Interface and Description |
|---|---|
static class |
ScopeClient.IfMatchRequestInterceptor |
SearchableResource.GetByNameRequestInterceptor| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_ASSIGNMENTS |
static String |
SCOPES_URI |
| Modifier and Type | Method and Description |
|---|---|
Scope |
create(Scope scope)
Creates a scope according to the provided
scope object. |
TaskResource |
delete(String resourceId,
RequestOption... options)
Deletes the scope identified by the provided
resourceId. |
TaskResource |
delete(String resourceId,
String eTag,
RequestOption... options)
Deletes the scope identified by the provided
resourceId. |
TaskResource |
patch(String resourceId,
ResourceAssignment assignment,
RequestOption... options)
Applies a patch on the scope identified by
resourceId according to the
provided ResourceAssignment object. |
Scope |
update(String resourceId,
Scope scope)
Updates the scope identified by
resourceId according to the
provided scope object. |
Scope |
update(String resourceId,
Scope scope,
String eTag)
Updates the scope identified by
resourceId according to the
provided scope object. |
getByNamestatic final String SCOPES_URI
static final String RESOURCE_ASSIGNMENTS
Scope create(Scope scope)
scope object.scope - object containing the details of the scope that should be created.Scope the created scope.Scope update(String resourceId, Scope scope)
resourceId according to the
provided scope object.resourceId - scope resource identifier.scope - object containing the details of the scope that should be updated.Scope the updated scope.Scope update(String resourceId, Scope scope, String eTag)
resourceId according to the
provided scope object.
The request is conditionally processed only if the current ETag for the scope matches the ETag passed as parameter.
resourceId - scope resource identifier.scope - object containing the details of the scope that should be updated.eTag - scope ETag.ScopeTaskResource delete(String resourceId, RequestOption... options)
resourceId.resourceId - scope resource identifier.options - varargs of RequestOption, which can be used to specify
some request options.TaskResource task containing the result of this request.TaskResource delete(String resourceId, String eTag, RequestOption... options)
resourceId.
The request is conditionally processed only if the current ETag for the scope matches the ETag passed as parameter.
resourceId - scope resource identifier.eTag - scope ETag.options - varargs of RequestOption, which can be used to specify
some request options.TaskResource task containing the result of this request.TaskResource patch(String resourceId, ResourceAssignment assignment, RequestOption... options)
resourceId according to the
provided ResourceAssignment object.resourceId - scope resource identifier.assignment - object containing the details of the modifications that should be applied.options - varargs of RequestOption, which can be used to specify
some request options.TaskResource task containing the result of this request.Copyright © 2017. All rights reserved.