|
Java SDK r12.5 SP 8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAttributeValidator
Performs directory-level validation of managed object attributes. This interface is implemented by directory-level validation rules.
With directory-level validation, you validate the attribute itself rather than validating it in the context of other attributes in the task. For example, you might validate that a phone number matches the nnn-nnn-nnnn format used for the attribute in the user directory.AttributeValidator
abstract class.
TaskValidator
.
Nested Class Summary | |
---|---|
static class |
IAttributeValidator.StringRef
A data type object that lets you pass an attribute value or error message to Identity Manager through the output parameters of the validate()
method. |
Method Summary | |
---|---|
boolean |
validate(java.lang.Object attributeValue,
IAttributeValidator.StringRef changedValue,
IAttributeValidator.StringRef errorMessage)
Validates the value specified in attributeValue . |
Method Detail |
---|
boolean validate(java.lang.Object attributeValue, IAttributeValidator.StringRef changedValue, IAttributeValidator.StringRef errorMessage) throws AttributeValidationException
Validates the value specified in attributeValue
.
AttributeValidationException
.
If it does, the exception message is defined in the constructor of the exception.
AttributeValidationException
,
but returns false
, Identity Manager throws AttributeValidationException
and includes the the exception message that you define
in the errorMessage
parameter of validate()
.
attributeValue
- The attribute value to validate.changedValue
- (out) Optionally, you can replace the supplied attribute value
with this value if the method returns true
.errorMessage
- (out) An error message to present to the user if the method
returns false
. Any message in this parameter
is only used if the custom object does not throw its own
AttributeValidationException
.
If the custom object does throw AttributeValidationException
, the error message defined in the
message
parameter of the exception's constructor
is used instead of the errorMessage
in this method.
true
if the attribute is successfully validated or updated,
or false
if the attribute cannot be validated or updated.
AttributeValidationException
|
Java SDK r12.5 SP 8 06/13/2011 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |