com.ibm.itim.script.wrappers
Class JSAttributeValueWrapperFactory

java.lang.Object
  extended by com.ibm.itim.script.wrappers.AbstractWrapperFactory
      extended by com.ibm.itim.script.wrappers.JSAttributeValueWrapperFactory
All Implemented Interfaces:
WrapperFactory

public class JSAttributeValueWrapperFactory
extends AbstractWrapperFactory

Factory to wrap AttributeValue types. Use a language specific wrapper to turn the AttributeValue into a JavaScript array indexable by number.

Since:
ITIM 5.0
See Also:
IBMJSAttributeValueWrapper, FESIAttributeValueWrapper

Field Summary
 
Fields inherited from interface com.ibm.itim.script.wrappers.WrapperFactory
FESI_LANG, IBMJS_LANG
 
Constructor Summary
JSAttributeValueWrapperFactory()
           
 
Method Summary
 ObjectWrapper wrap(java.lang.Object obj, java.lang.String lang, java.lang.Object param)
          Correctly wrap the given object to use in the scripting environment.
 
Methods inherited from class com.ibm.itim.script.wrappers.AbstractWrapperFactory
getObjectToStore
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSAttributeValueWrapperFactory

public JSAttributeValueWrapperFactory()
Method Detail

wrap

public ObjectWrapper wrap(java.lang.Object obj,
                          java.lang.String lang,
                          java.lang.Object param)
Description copied from interface: WrapperFactory
Correctly wrap the given object to use in the scripting environment. If a wrapper that a WrapperFactory creates does not need any special context information, it is safe to ignore lang and param.

Parameters:
obj - The Object to wrap.
lang - The scripting language we are using. This is used to choose a specific wrapper if the wrapper must vary depending on scripting language.
param - Some wrapper classes need parameters to correctly wrap objects. param is how this information is passed. param can be null if no extra information is necessary.
Returns:
null - if (obj == null)
null - if param is not sufficient to wrap the object for the given language.
Wrapped object - else.


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.