public interface ValidationProvider
ReconTransportProvider
and ReconFormatProvider
. Only validated data records are
passed ahead for transformation.
Examples of the implementation for this layer would be
MaxLength, MinLength and IsInteger.
All the methods of this interface throw ProviderException
. The implementations of this
interface should utilize this fact to wrap all possible exceptions ultimately in an instance
of ProviderException.ProviderException
Modifier and Type | Method and Description |
---|---|
boolean |
validate(java.lang.String input,
java.util.Hashtable params,
java.util.Hashtable utils)
This method validates input data based on the logic defined by the relevant validation provider.
|
boolean validate(java.lang.String input, java.util.Hashtable params, java.util.Hashtable utils) throws ProviderException
input
- The input candidate to be validatedparams
- contains the input field-value pairs which are
arguments required by this validationutils
- contains the reference to factory object for obtaining an Oracle Identity Manager API Instance.
This might be useful for those validation implementations that want to retrieve an
Oracle Identity Manager entity value(s) for executing some business logic. For example, Encoded and Decoded value pairs
of an Oracle Identity Manager Lookup Definition.
Relevant Sample code:
Iterator itr = utils.keySet().iterator();
String key = (String) itr.next();
TransformationSource source=(TransformationSource)utils.get(key);
tcLookupOperationsIntf lookupIntf = (tcLookupOperationsIntf)source.getUtility("Thor.API.Operations.tcLookupOperationsIntf");ProviderException
GCSource
,
TransformationSource