com.unboundid.scim.sdk
Class BulkContentHandler

java.lang.Object
  extended by com.unboundid.scim.sdk.BulkContentHandler
Direct Known Subclasses:
BulkContentRequestHandler, BulkContentResponseHandler

public abstract class BulkContentHandler
extends Object

This class must be extended to handle the content of a bulk operation.


Constructor Summary
BulkContentHandler()
           
 
Method Summary
 ResourceDescriptor getResourceDescriptor(String endpoint)
          Retrieve the resource descriptor for a given endpoint.
 void handleFailOnErrors(int failOnErrors)
          Handles the value of failOnErrors.
 boolean handleOperation(int opIndex, BulkOperation bulkOperation)
          Handle an individual operation.
 String transformValue(int opIndex, String value)
          Transform a data value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkContentHandler

public BulkContentHandler()
Method Detail

handleFailOnErrors

public void handleFailOnErrors(int failOnErrors)
Handles the value of failOnErrors.

Parameters:
failOnErrors - The number of errors that the Service Provider will accept before the operation is terminated and an error response is returned.

handleOperation

public boolean handleOperation(int opIndex,
                               BulkOperation bulkOperation)
                        throws SCIMException
Handle an individual operation.

Parameters:
opIndex - The index of the operation.
bulkOperation - The individual operation within the bulk operation.
Returns:
true if operations should continue to be provided, or false if the remaining operations are of no interest.
Throws:
SCIMException - If an error occurs that prevents processing of the entire bulk content.

getResourceDescriptor

public ResourceDescriptor getResourceDescriptor(String endpoint)
Retrieve the resource descriptor for a given endpoint.

Parameters:
endpoint - A SCIM resource endpoint.
Returns:
The resource descriptor for this endpoint, or null if the endpoint is unknown.

transformValue

public String transformValue(int opIndex,
                             String value)
Transform a data value. This method may be used to resolve bulkId references to resource IDs.

Parameters:
opIndex - The index of the bulk operation containing the data value.
value - The value to be transformed.
Returns:
The transformed value.


Copyright © 2011-2012 UnboundID. All Rights Reserved.