com.ibm.itim.script.wrappers

Class JSPackagedApprovalDocumentWrapperFactory

  • java.lang.Object
    • com.ibm.itim.script.wrappers.JSPackagedApprovalDocumentWrapperFactory
  • All Implemented Interfaces:
    WrapperFactory


    public class JSPackagedApprovalDocumentWrapperFactory
    extends java.lang.Object
    implements WrapperFactory
    Factory to wrap PackagedApprovalDocument instances
    Since:
    ITIM 5.1
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object getObjectToStore(java.lang.Object obj)
      Get the object that should be returned on a lookup call on ObjectWrapperManager.
      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 java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JSPackagedApprovalDocumentWrapperFactory

        public JSPackagedApprovalDocumentWrapperFactory()
    • 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.
        Specified by:
        wrap in interface WrapperFactory
        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.
        See Also:
        WrapperFactory.wrap(Object, String, Object)
      • getObjectToStore

        public java.lang.Object getObjectToStore(java.lang.Object obj)
        Description copied from interface: WrapperFactory
        Get the object that should be returned on a lookup call on ObjectWrapperManager. This method exists so that if a different object should be returned than is passed in. This is the case if a DirectoryObjectEntity is wrapped, but a DirectoryObject should be returned. In most cases obj will be returned.
        Specified by:
        getObjectToStore in interface WrapperFactory
        Parameters:
        obj - The same object that was passed wrap.
        Returns:
        The object to store in ObjectWrapperManagers lookup map.
        See Also:
        WrapperFactory.getObjectToStore(Object)