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.
|
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, supportsVersioningpublic ResourceSchemaBackend(SCIMApplication application)
application - The SCIM JAX-RS application associated with this
backend.public void finalizeBackend()
finalizeBackend in class SCIMBackendpublic 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 BaseResource patchResource(PatchResourceRequest request) throws SCIMException
patchResource in class SCIMBackendrequest - The Patch Resource request.SCIMException - if an error occurs while processing the request.public Collection<ResourceDescriptor> getResourceDescriptors()
getResourceDescriptors in class SCIMBackendpublic 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–2016 UnboundID. All rights reserved.