Skip Headers
Oracle® Identity Manager Connector Guide for Microsoft Active Directory User Management
Release 9.1.1

Part Number E11197-07
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

D Sample Transformation Class

When you use this connector, you can transform reconciled data according to your requirements. This feature has been described in "Transforming Data Reconciled Into Oracle Identity Manager", along with the discussion on the Transform Lookup Code and Use Transform Mapping attributes.

If you want to transform the value of a target system field that is fetched during reconciliation, then the first step is to implement the required transformation logic in a Java class. This transformation class must implement the com.thortech.xl.schedule.tasks.AttributeTransformer interface and the transform method.

The following is a sample transformation class:

import com.thortech.xl.schedule.tasks.AttributeTransformer;
public class AppendNumber implements AttributeTransformer {
/**
* @param value: This is the input string to be transformed.
* @return String: This is the string that is returned.
*/
public String transform(String value) {
value=value+"123";
return value;
}
}

The method defined in this class accepts the value of the field to be transformed, appends the string 123 to it, and returns the transformed string value.