com.ca.jcs.validator.meta
Class ValidatorModifyOpContext

java.lang.Object
  extended by com.ca.jcs.PluginCoreContext
      extended by com.ca.jcs.validator.meta.ValidatorModifyOpContext

public class ValidatorModifyOpContext
extends PluginCoreContext

Context information made available to power-usage validators triggered by LDAP MODIFY requests.


Constructor Summary
ValidatorModifyOpContext(MetaConnector connector, ObjectInfo objInfo, ModificationItem[] items, AttributesProxy attributes, boolean caseSensitive)
           
 
Method Summary
 AttributesProxy getAttributesProxy()
          Return lazy proxy which can be used to look up current values of attributesProxy for object being modified prior to any modifications being made, using LDAP attribute ids.
 ModificationItem[] getModificationItems()
           
 Set<String> getModifiedAttrIds()
          Return list of all attributesProxy being modified, adjusted according to caseSensitive setting passed in to constructor.
 ObjectInfo getObjInfo()
          Information for object targetted by an LDAP request.
 Attribute getUpdatedAttribute(String origLdapAttrId)
          Return value of named attribute after applying any relevant modification items, returning its current value from getAttributesProxy() if no modifications apply.
 
Methods inherited from class com.ca.jcs.PluginCoreContext
getConnector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorModifyOpContext

public ValidatorModifyOpContext(MetaConnector connector,
                                ObjectInfo objInfo,
                                ModificationItem[] items,
                                AttributesProxy attributes,
                                boolean caseSensitive)
Method Detail

getModificationItems

public ModificationItem[] getModificationItems()

getAttributesProxy

public AttributesProxy getAttributesProxy()
Return lazy proxy which can be used to look up current values of attributesProxy for object being modified prior to any modifications being made, using LDAP attribute ids.


getModifiedAttrIds

public Set<String> getModifiedAttrIds()
Return list of all attributesProxy being modified, adjusted according to caseSensitive setting passed in to constructor.


getUpdatedAttribute

public Attribute getUpdatedAttribute(String origLdapAttrId)
Return value of named attribute after applying any relevant modification items, returning its current value from getAttributesProxy() if no modifications apply.

Parameters:
origLdapAttrId - Attribute to lookup.
Returns:
Possibly modified current value.

getObjInfo

public ObjectInfo getObjInfo()
Information for object targetted by an LDAP request.



Created 2011-07-14 13:27 EST