com.ca.jcs.validator.meta
Class ClassValidator

java.lang.Object
  extended by com.ca.jcs.cfg.Vetoable
      extended by com.ca.jcs.validator.meta.ClassValidator

public abstract class ClassValidator
extends Vetoable

Validate all attributes provided to a add/modify operation by processing them all at once against an object class (and hence with access to all of its metadata, and all of its properties and their metadata).


Constructor Summary
ClassValidator(MetaObjectClassMapping classMap)
           
 
Method Summary
abstract  ErrorMessages validate(Attributes attrs)
          Create/add case.
abstract  ErrorMessages validate(ModificationItem[] modItem, AttributesProxy currAttributes)
          Update/modify case, where current attribute values can be accessed via the provided lazy proxy.
 
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

ClassValidator

public ClassValidator(MetaObjectClassMapping classMap)
Method Detail

validate

public abstract ErrorMessages validate(Attributes attrs)
                                throws NamingException
Create/add case.

Throws:
NamingException

validate

public abstract ErrorMessages validate(ModificationItem[] modItem,
                                       AttributesProxy currAttributes)
                                throws NamingException
Update/modify case, where current attribute values can be accessed via the provided lazy proxy.

Throws:
NamingException


Created 2011-07-14 13:27 EST