|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.unboundid.scim.sdk.SCIMEndpoint<R>
R - The type of resource instances handled by this SCIMEndpoint.public class SCIMEndpoint<R extends BaseResource>
This class represents a SCIM endpoint (ie. Users, Groups, etc.) and handles all protocol-level interactions with the service provider. It acts as a helper class for invoking CRUD operations of resources and processing their results.
| Method Summary | |
|---|---|
R |
create(R resource)
Create the specified resource instance at the service provider. |
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(String id)
Delete the resource instance specified by the provided ID. |
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,
String... requestedAttributes)
Retrieves all resource instances that match the provided filter. |
R |
update(R resource)
Update the existing resource with the one provided. |
R |
update(R resource,
String etag,
String... requestedAttributes)
Update the existing resource with the one provided. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public R newResource()
create(R) 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. A value of null indicates
unconditional return.requestedAttributes - The attributes of the resource to retrieve.
null if the requested
resource has not been modified.
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 R create(R resource)
throws SCIMException
resource - The resource to create.
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.
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 void delete(String id)
throws SCIMException
id - The ID of 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||