|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.jcs.cfg.Vetoable
com.ca.jcs.validator.meta.PropertyValidator
public abstract class PropertyValidator
Validate an attribute given it's type and constraints available in the
metadata stored on prop.
Note that implementation has to be driven by metadata rather then the provided attributes to handle cases like "required" where detecting the lack of an attribute identifies an error condition.
Validators are definitely applied to LDAP attribute values flowing into the JCS, but in some cases may also need to applied to information flowing up from connectors before it is converted into the LDAP domain too (for instance when the target system managed by the connector doesn't enforce it's own strict validation natively).
| Constructor Summary | |
|---|---|
PropertyValidator()
|
|
| Method Summary | |
|---|---|
DataModelType |
getTargetValueOverride()
Override to return a type if desired, in which case any AttributeConverter registered against this value will be cleared when this property converter is activated for a property. |
abstract ErrorMessages |
validate(Attribute attr)
Create/add case. |
abstract ErrorMessages |
validate(ModificationItem modItem)
Update/modify case. |
| Methods inherited from class com.ca.jcs.cfg.Vetoable |
|---|
isVetoed, setVetoed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyValidator()
| Method Detail |
|---|
public DataModelType getTargetValueOverride()
public abstract ErrorMessages validate(Attribute attr)
validate in interface AttributeValidatorattr - Attribute whose values are to be validated.
msgFormatId field
needs to be set.public abstract ErrorMessages validate(ModificationItem modItem)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||