The definition of the JavaScript interface for task-level validation is as follows:
public interface TaskValidator { public class StringRef { public String reference = new String(); public String toString(){return reference;} public boolean validate( BLTHContext ctx, String attrValue, StringRef updatedValue, StringRef errorMessage ) throws AttributeValidationException; }
Input parameter
Specifies an object that contains methods for retrieving information in the current task session.
Input parameter
Specifies the value of the attribute being validated.
Output parameter
Provides an optional transformation value that replaces the user-supplied value being validated. When no transformation is necessary, pass back null.
Output Parameter
If validation fails, it displays a message to the user.
For more information about Java validation rules and on managed objects, see the CA Identity Manager Javadoc.
AttributeValidationException
Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |