com.ca.jcs.converter.eval
Class ConverterValueCache

java.lang.Object
  extended by com.ca.jcs.converter.eval.ConverterValueCache

public class ConverterValueCache
extends Object

Provides a thread-local cache of original values (ADD) / modification items (MODIFY) for attributes which are converted, but which other converters require access to their original values. One example usage is flattened multi-valued attributes, where different flatteners may be registered for the attribute and/or one or more arguments to method-style opbindings handled by MetaOpBindingsProxyHandler.


Constructor Summary
ConverterValueCache()
           
 
Method Summary
static Attribute getAttribute(String ldapAttrId)
           
static AttributesProxy getAttributesProxy()
           
static ModificationItem[] getModificationItems()
           
static void putAttribute(String ldapAttrId, Attribute attr)
           
static void putAttributesProxy(AttributesProxy attrs)
           
static void putModificationItems(ModificationItem[] items)
          Store deep clone of provided items - must store complete array rather then attrId map as same attribute id could be mentioned more then once (eg it could have one ADD delta and one REMOVE delta for the same multi-valued attribute).
static void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterValueCache

public ConverterValueCache()
Method Detail

reset

public static void reset()

putAttribute

public static void putAttribute(String ldapAttrId,
                                Attribute attr)

getAttribute

public static Attribute getAttribute(String ldapAttrId)

putModificationItems

public static void putModificationItems(ModificationItem[] items)
Store deep clone of provided items - must store complete array rather then attrId map as same attribute id could be mentioned more then once (eg it could have one ADD delta and one REMOVE delta for the same multi-valued attribute).


getModificationItems

public static ModificationItem[] getModificationItems()

getAttributesProxy

public static AttributesProxy getAttributesProxy()

putAttributesProxy

public static void putAttributesProxy(AttributesProxy attrs)


Created 2011-07-14 13:27 EST