public class ResourceSchemaBackend extends SCIMBackend
Constructor and Description |
---|
ResourceSchemaBackend(SCIMApplication application)
Create a new ResourceSchemaBackend that serves up the schema provided
from the ResourceDescriptors.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Collection<ResourceDescriptor> |
getResourceDescriptors()
Retrieve the resource descriptors served by this backend.
|
Resources |
getResources(GetResourcesRequest request)
Retrieve selected resources.
|
void |
getStreamedResources(GetStreamedResourcesRequest request,
StreamedResultListener listener)
Retrieve selected resources using the UnboundID streamed query
SCIM extension.
|
BaseResource |
patchResource(PatchResourceRequest request)
Update the contents of an existing resource with attributes specified.
|
BaseResource |
postResource(PostResourceRequest request)
Create a new resource.
|
BaseResource |
putResource(PutResourceRequest request)
Replace the contents of an existing resource.
|
getConfig, getResourceDescriptor, getSupportedAuthenticationSchemes, supportsSorting, supportsVersioning
public ResourceSchemaBackend(SCIMApplication application)
application
- The SCIM JAX-RS application associated with this
backend.public void finalizeBackend()
finalizeBackend
in class SCIMBackend
public ResourceDescriptor getResource(GetResourceRequest request) throws SCIMException
getResource
in class SCIMBackend
request
- The Get Resource request.SCIMException
- if an error occurs while processing the request.public Resources getResources(GetResourcesRequest request) throws SCIMException
getResources
in class SCIMBackend
request
- The Get Resources request.SCIMException
- if an error occurs while processing the request.public BaseResource postResource(PostResourceRequest request) throws SCIMException
postResource
in class SCIMBackend
request
- The Post Resource request.SCIMException
- if an error occurs while processing the request.public void deleteResource(DeleteResourceRequest request) throws SCIMException
deleteResource
in class SCIMBackend
request
- The Delete Resource request.SCIMException
- if an error occurs while processing the request.public BaseResource putResource(PutResourceRequest request) throws SCIMException
putResource
in class SCIMBackend
request
- The Put Resource request.SCIMException
- if an error occurs while processing the request.public BaseResource patchResource(PatchResourceRequest request) throws SCIMException
patchResource
in class SCIMBackend
request
- The Patch Resource request.SCIMException
- if an error occurs while processing the request.public Collection<ResourceDescriptor> getResourceDescriptors()
getResourceDescriptors
in class SCIMBackend
public void getStreamedResources(GetStreamedResourcesRequest request, StreamedResultListener listener) throws SCIMException
getStreamedResources
in class SCIMBackend
request
- The Get Streamed Resources request.listener
- Listener object to receive results.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.Copyright © 2011-2015 UnboundID. All Rights Reserved.