ディレクトリ レベル検証の Java インターフェースの定義を以下に示します。
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;
}
入力パラメータ
検証される属性の値を指定します。
出力パラメータ
検証されるユーザ入力値を置換するオプションの変換値を提供します。 変換が必要でない場合は、null を返します。
出力パラメータ
検証が失敗すると、ユーザへのメッセージを表示します。
検証操作でディレクトリにある管理対象オブジェクトが必要とされる場合、 AttributeValidator を使用します。 この抽象型クラスでは IAttributeValidator インターフェースを実装し、管理対象オブジェクト プロバイダの取得方法が含まれます。
AttributeValidationException.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|