Previous Topic: JavaScript Interface for Task-Level ValidationNext Topic: Java Implementation


JavaScript Interface for Directory-Level Validation

The definition of the JavaScript interface for directory-level validation is as follows:

Syntax
public boolean validate(
   String attributeValue,
   StringRef changedValue,
   StringRef errorMessage
   );
Parameters
attributeValue

Input parameter

Specifies the value of the attribute being validated.

changedValue

Output parameter

Provides an optional transformation value that replaces the user-supplied value being validated. If no transformation is necessary, pass back null.

errorMessage

Output parameter

If validation fails, it displays a message to the user.

The message is displayed through AttributeValidationException. If the method returns false, CA IdentityMinder generates this exception.

Comments

The output parameters changedValue and errorMessage are of data type StringRef. StringRef is a predefined data type that contains the field reference, to which you assign a value, as shown in the following examples:

Returns