|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.unboundid.scim.sdk.SCIMBackend
com.unboundid.scim.sdk.ResourceSchemaBackend
public class ResourceSchemaBackend
This class provides an implementation of the SCIM server backend API that serves up the resource schema from a collection of ResourceDescriptors.
| Constructor Summary | |
|---|---|
ResourceSchemaBackend(Collection<ResourceDescriptor> resourceDescriptors)
Create a new ResourceSchemaBackend that serves up the schema provided from the ResourceDescriptors. |
|
| Method Summary | |
|---|---|
boolean |
authenticate(String userID,
String password)
Perform basic authentication using the provided information. |
static ResourceDescriptor |
copyAndSetIdAndMetaAttributes(ResourceDescriptor resource,
ResourceReturningRequest request)
Make a copy of the ResourceDescriptor and set the id and meta attributes from the provided information. |
void |
deleteResource(DeleteResourceRequest request)
Delete a specific resource. |
void |
finalizeBackend()
Performs any cleanup which may be necessary when this backend is to be taken out of service. |
ResourceDescriptor |
getResource(GetResourceRequest request)
Retrieve all or selected attributes of a resource. |
Resources |
getResources(GetResourcesRequest request)
Retrieve selected resources. |
BaseResource |
postResource(PostResourceRequest request)
Create a new resource. |
BaseResource |
putResource(PutResourceRequest request)
Replace the contents of an existing resource. |
| Methods inherited from class com.unboundid.scim.sdk.SCIMBackend |
|---|
getConfig |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceSchemaBackend(Collection<ResourceDescriptor> resourceDescriptors)
resourceDescriptors - The ResourceDescriptors to serve.| Method Detail |
|---|
public boolean authenticate(String userID,
String password)
authenticate in class SCIMBackenduserID - The user ID to be authenticated.password - The user password to be verified.
true if the provided user ID and password are valid.public void finalizeBackend()
finalizeBackend in class SCIMBackend
public ResourceDescriptor getResource(GetResourceRequest request)
throws SCIMException
getResource in class SCIMBackendrequest - The Get Resource request.
SCIMException - if an error occurs while processing the request.
public Resources getResources(GetResourcesRequest request)
throws SCIMException
getResources in class SCIMBackendrequest - The Get Resources request.
SCIMException - if an error occurs while processing the request.
public BaseResource postResource(PostResourceRequest request)
throws SCIMException
postResource in class SCIMBackendrequest - The Post Resource request.
SCIMException - if an error occurs while processing the request.
public void deleteResource(DeleteResourceRequest request)
throws SCIMException
deleteResource in class SCIMBackendrequest - The Delete Resource request.
SCIMException - if an error occurs while processing the request.
public BaseResource putResource(PutResourceRequest request)
throws SCIMException
putResource in class SCIMBackendrequest - The Put Resource request.
SCIMException - if an error occurs while processing the request.
public static ResourceDescriptor copyAndSetIdAndMetaAttributes(ResourceDescriptor resource,
ResourceReturningRequest request)
resource - The SCIM object whose id and meta attributes are to be
set.request - The SCIM request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||