The definition of the Java interface for directory-level validation is as follows:
public interface IAttributeValidator { public class StringRef { public String reference = new String(); public String toString(){return reference;} public boolean validate( Object attributeValue, StringRef changedValue, StringRef errorMessage ) throws AttributeValidationException; }
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.
If the validation operation requires managed objects from the directory, use AttributeValidator. This abstract class implements the IAttributeValidator interface, and includes a method for retrieving the managed object providers.
AttributeValidationException.
Copyright © 2013 CA.
All rights reserved.
|
|