R - The type of resource instances handled by this SCIMEndpoint.public class SCIMEndpoint<R extends BaseResource> extends Object
| Modifier and Type | Method and Description |
|---|---|
R |
create(R resource,
String... requestedAttributes)
Create the specified resource instance at the service provider and return
only the specified attributes from the newly inserted resource.
|
void |
delete(R resource)
Delete the specified resource instance.
|
void |
delete(String id)
Deprecated.
|
void |
delete(String id,
String etag)
Delete the resource instance specified by the provided ID.
|
R |
get(String id)
Retrieves a resource instance given the ID.
|
R |
get(String id,
String etag,
String... requestedAttributes)
Retrieves a resource instance given the ID, only if the current version
has been modified.
|
R |
newResource()
Constructs a new instance of a resource object which is empty.
|
Resources<R> |
query(String filter)
Retrieves all resource instances that match the provided filter.
|
Resources<R> |
query(String filter,
SortParameters sortParameters,
PageParameters pageParameters,
Map<String,String> additionalQueryParams,
String... requestedAttributes)
Retrieves all resource instances that match the provided filter.
|
Resources<R> |
query(String filter,
SortParameters sortParameters,
PageParameters pageParameters,
String... requestedAttributes)
Retrieves all resource instances that match the provided filter.
|
R |
update(R resource)
Update the existing resource with the one provided (using the HTTP PUT
method).
|
R |
update(R resource,
List<SCIMAttribute> attributesToUpdate,
List<String> attributesToDelete)
Update the existing resource with the one provided (using the HTTP PATCH
method).
|
R |
update(R resource,
String etag,
String... requestedAttributes)
Deprecated.
|
void |
update(String id,
List<SCIMAttribute> attributesToUpdate,
List<String> attributesToDelete)
Deprecated.
|
R |
update(String id,
String etag,
List<SCIMAttribute> attributesToUpdate,
List<String> attributesToDelete,
String... requestedAttributes)
Update the existing resource with the one provided (using the HTTP PATCH
method).
|
R |
update(String id,
String etag,
R resource,
String... requestedAttributes)
Update the existing resource with the one provided (using the HTTP PUT
method).
|
public R newResource()
create(R, java.lang.String...) method after the
attributes have been specified.public R get(String id) throws SCIMException
id - The ID of the resource to retrieve.SCIMException - If an error occurs.public R get(String id, String etag, String... requestedAttributes) throws SCIMException
id - The ID of the resource to retrieve.etag - The entity tag that indicates the entry should be returned
only if the entity tag of the current resource is different
from the provided value and a value of "*" will not return
an entry if the resource still exists. A value of
null indicates unconditional return.requestedAttributes - The attributes of the resource to retrieve.SCIMException - If an error occurs.public Resources<R> query(String filter) throws SCIMException
filter - The filter that should be used.SCIMException - If an error occurs.public Resources<R> query(String filter, SortParameters sortParameters, PageParameters pageParameters, String... requestedAttributes) throws SCIMException
filter - The filter that should be used.sortParameters - The sort parameters that should be used.pageParameters - The page parameters that should be used.requestedAttributes - The attributes of the resource to retrieve.SCIMException - If an error occurs.public Resources<R> query(String filter, SortParameters sortParameters, PageParameters pageParameters, Map<String,String> additionalQueryParams, String... requestedAttributes) throws SCIMException
filter - The filter that should be used.sortParameters - The sort parameters that should be used.pageParameters - The page parameters that should be used.additionalQueryParams - A map of additional query parameters that
should be included.requestedAttributes - The attributes of the resource to retrieve.SCIMException - If an error occurs.public R create(R resource, String... requestedAttributes) throws SCIMException
resource - The resource to create.requestedAttributes - The attributes of the newly inserted resource
to retrieve.SCIMException - If an error occurs.public R update(R resource) throws SCIMException
resource - The modified resource to be updated.SCIMException - If an error occurs.@Deprecated public R update(R resource, String etag, String... requestedAttributes) throws SCIMException
resource - The modified resource to be updated.etag - The entity tag value that is the expected value for the target
resource. A value of null will not set an
etag precondition and a value of "*" will perform an
unconditional update.requestedAttributes - The attributes of updated resource
to return.SCIMException - If an error occurs.public R update(String id, String etag, R resource, String... requestedAttributes) throws SCIMException
id - The ID of the resource to update.etag - The entity tag value that is the expected value for the target
resource. A value of null will not set an
etag precondition and a value of "*" will perform an
unconditional update.resource - The modified resource to be updated.requestedAttributes - The attributes of updated resource
to return.SCIMException - If an error occurs.public R update(R resource, List<SCIMAttribute> attributesToUpdate, List<String> attributesToDelete) throws SCIMException
attributesToDelete parameter is
specified, those attributes will be removed from the resource before the
attributesToUpdate are merged into the resource.resource - The resource to update.attributesToUpdate - The list of attributes (and their new values) to
update on the resource.attributesToDelete - The list of attributes to delete on the resource.SCIMException - If an error occurs.public R update(String id, String etag, List<SCIMAttribute> attributesToUpdate, List<String> attributesToDelete, String... requestedAttributes) throws SCIMException
attributesToDelete parameter is
specified, those attributes will be removed from the resource before the
attributesToUpdate are merged into the resource.id - The ID of the resource to update.etag - The entity tag value that is the expected value for the target
resource. A value of null will not set an
etag precondition and a value of "*" will perform an
unconditional update.attributesToUpdate - The list of attributes (and their new values) to
update on the resource. These attributes should
conform to Section 3.2.2 of the SCIM 1.1
specification (draft-scim-api-01),
"Modifying Resources with PATCH".attributesToDelete - The list of attributes to delete on the resource.requestedAttributes - The attributes of updated resource to return.requestedAttributes parameter was not specified and
the service provider returned no content.SCIMException - If an error occurs.@Deprecated public void update(String id, List<SCIMAttribute> attributesToUpdate, List<String> attributesToDelete) throws SCIMException
attributesToDelete parameter is
specified, those attributes will be removed from the resource before the
attributesToUpdate are merged into the resource.id - The ID of the resource to update.attributesToUpdate - The list of attributes (and their new values) to
update on the resource.attributesToDelete - The list of attributes to delete on the resource.SCIMException - If an error occurs.@Deprecated public void delete(String id) throws SCIMException
id - The ID of the resource to delete.SCIMException - If an error occurs.public void delete(R resource) throws SCIMException
resource - The resource to delete.SCIMException - If an error occurs.public void delete(String id, String etag) throws SCIMException
id - The ID of the resource to delete.etag - The entity tag value that is the expected value for the target
resource. A value of null will not set an
etag precondition and a value of "*" will perform an
unconditional delete.SCIMException - If an error occurs.Copyright © 2011–2016 UnboundID. All rights reserved.