public class ResourcePreparer<T extends com.unboundid.scim2.common.ScimResource> extends Object
| Constructor and Description |
|---|
ResourcePreparer(ResourceTypeDefinition resourceType,
javax.ws.rs.core.UriInfo requestUriInfo)
Create a new ResourcePreparer for preparing returned resources for a
SCIM operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setResourceTypeAndLocation(T returnedResource)
Sets the meta.resourceType and meta.location metadata attribute values.
|
com.unboundid.scim2.common.GenericScimResource |
trimCreatedResource(T returnedResource,
T requestResource)
Trim attributes of the resources returned from a create operation based on
schema as well as the request resource and request parameters.
|
com.unboundid.scim2.common.GenericScimResource |
trimModifiedResource(T returnedResource,
Iterable<com.unboundid.scim2.common.messages.PatchOperation> patchOperations)
Trim attributes of the resources returned from a modify operation based on
schema as well as the patch request and request parameters.
|
com.unboundid.scim2.common.GenericScimResource |
trimReplacedResource(T returnedResource,
T requestResource)
Trim attributes of the resources returned from a replace operation based on
schema as well as the request resource and request parameters.
|
com.unboundid.scim2.common.GenericScimResource |
trimRetrievedResource(T returnedResource)
Trim attributes of the resources returned from a search or retrieve
operation based on schema and the request parameters.
|
public ResourcePreparer(ResourceTypeDefinition resourceType, javax.ws.rs.core.UriInfo requestUriInfo) throws com.unboundid.scim2.common.exceptions.BadRequestException
resourceType - The resource type definition for resources to prepare.requestUriInfo - The UriInfo for the request.com.unboundid.scim2.common.exceptions.BadRequestException - If an attribute path specified by attributes
and excludedAttributes is invalid.public com.unboundid.scim2.common.GenericScimResource trimRetrievedResource(T returnedResource)
returnedResource - The resource to return.public com.unboundid.scim2.common.GenericScimResource trimCreatedResource(T returnedResource, T requestResource)
returnedResource - The resource to return.requestResource - The resource in the create request or
null if not available.public com.unboundid.scim2.common.GenericScimResource trimReplacedResource(T returnedResource, T requestResource)
returnedResource - The resource to return.requestResource - The resource in the replace request or
null if not available.public com.unboundid.scim2.common.GenericScimResource trimModifiedResource(T returnedResource, Iterable<com.unboundid.scim2.common.messages.PatchOperation> patchOperations)
returnedResource - The resource to return.patchOperations - The operations in the patch request or
null if not available.public void setResourceTypeAndLocation(T returnedResource)
returnedResource - The resource to set the attributes.Copyright © 2015–2018 Ping Identity Corporation. All rights reserved.