com.webmethods.caf.portalclient.util
Class InProcHelper

java.lang.Object
  extended by com.webmethods.caf.portalclient.util.InProcHelper

public class InProcHelper
extends Object

Static utility class to convert WSDL generated storage classes to/from their corresponding MWS runtime implementations as well as call MWS method via reflection NOTE: Used by the in-proc invocation mechanism and not intended to be used externally.


Field Summary
static String ICOMMANDBEAN_CLASS
           
protected static Object m_commandProvider
           
protected static Object m_contextFactory
           
protected static Object m_portalSystemRef
           
static Map m_portalTypeMap
           
static Map m_wsdlTypeMap
           
static String PORTAL_ALIASVALUE_CLASS_NAME
           
static String PORTAL_ALIASVALUE_INTERFACE_NAME
           
static String PORTAL_LISTVIEW_INTERFACE_NAME
           
static String PORTAL_PAGINGCOOKIE_CLASS_NAME
           
static String PORTAL_PAGINGCOOKIE_INTERFACE_NAME
           
static String PORTAL_THINGID_CLASS_NAME
           
static String PORTAL_THINGID_INTERFACE_NAME
           
static String PORTAL_THINGIDLIST_INTERFACE_NAME
           
static String PORTAL_TYPEDATTRIBUTE_CLASS_NAME
           
static String PORTAL_TYPEDATTRIBUTE_INTERFACE_NAME
           
static String PORTAL_URI_CLASS_NAME
           
static String PORTAL_URI_INTERFACE_NAME
           
static String PORTAL_VIEW_INTERFACE_NAME
           
 
Constructor Summary
InProcHelper()
           
 
Method Summary
static Object acquireURI(String uriString)
           
static Object createCommandBean(Object portalContext, Object command, Map propMap)
           
static Object getCommandProvider()
           
static String getLocalVMID()
           
static Map getObjectProperties(Object obj)
           
static PagingCookie getPagingCookie(Object obj)
           
static Object getPortalContext()
           
static Object getPortalContextFactory()
           
static Object getPortalSystem()
           
static Map getPortalTypeMap()
           
static String getUriPropertyAsString(Object obj)
           
static URI[] getUrisFromThingIDList(Object fromObj)
           
static View[] getViewsFromListView(Object fromObj)
           
static Map getWsdlTypeMap()
           
static Object invokeCommand(String commandName, Object[] args)
           
static Class loadClazz(String className)
           
static Object toPortalAliasValue(AliasValue fromObj)
           
static Locale toPortalLocale(Locale fromObj)
           
static Object toPortalPagingCookie(PagingCookie fromObj)
           
static Object toPortalType(Object wsdlObj)
           
static Object toPortalURI(URI wsdlURI)
           
static AliasValue toWsdlAliasValue(Object fromObj)
           
static Object[] toWsdlList(Object fromObj)
           
static ListView toWsdlListView(Object fromObj)
           
static Locale toWsdlLocale(Object fromObj)
           
static Hashtable toWsdlMap(Object fromObj)
           
static PagingCookie toWsdlPagingCookie(Object fromObj)
           
static ThingIDList toWsdlThingIDList(Object fromObj)
           
static Object toWsdlType(Object portalObj)
           
static TypedAttribute toWsdlTypedAttribute(Object fromObj)
           
static URI toWsdlURI(Object portalURI)
           
static View toWsdlView(Object fromObj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORTAL_URI_CLASS_NAME

public static final String PORTAL_URI_CLASS_NAME
See Also:
Constant Field Values

PORTAL_PAGINGCOOKIE_CLASS_NAME

public static final String PORTAL_PAGINGCOOKIE_CLASS_NAME
See Also:
Constant Field Values

PORTAL_THINGID_CLASS_NAME

public static final String PORTAL_THINGID_CLASS_NAME
See Also:
Constant Field Values

PORTAL_ALIASVALUE_CLASS_NAME

public static final String PORTAL_ALIASVALUE_CLASS_NAME
See Also:
Constant Field Values

PORTAL_TYPEDATTRIBUTE_CLASS_NAME

public static final String PORTAL_TYPEDATTRIBUTE_CLASS_NAME
See Also:
Constant Field Values

PORTAL_URI_INTERFACE_NAME

public static final String PORTAL_URI_INTERFACE_NAME
See Also:
Constant Field Values

PORTAL_VIEW_INTERFACE_NAME

public static final String PORTAL_VIEW_INTERFACE_NAME
See Also:
Constant Field Values

PORTAL_LISTVIEW_INTERFACE_NAME

public static final String PORTAL_LISTVIEW_INTERFACE_NAME
See Also:
Constant Field Values

PORTAL_PAGINGCOOKIE_INTERFACE_NAME

public static final String PORTAL_PAGINGCOOKIE_INTERFACE_NAME
See Also:
Constant Field Values

PORTAL_THINGID_INTERFACE_NAME

public static final String PORTAL_THINGID_INTERFACE_NAME
See Also:
Constant Field Values

PORTAL_THINGIDLIST_INTERFACE_NAME

public static final String PORTAL_THINGIDLIST_INTERFACE_NAME
See Also:
Constant Field Values

PORTAL_TYPEDATTRIBUTE_INTERFACE_NAME

public static final String PORTAL_TYPEDATTRIBUTE_INTERFACE_NAME
See Also:
Constant Field Values

PORTAL_ALIASVALUE_INTERFACE_NAME

public static final String PORTAL_ALIASVALUE_INTERFACE_NAME
See Also:
Constant Field Values

ICOMMANDBEAN_CLASS

public static final String ICOMMANDBEAN_CLASS
See Also:
Constant Field Values

m_portalTypeMap

public static Map m_portalTypeMap

m_wsdlTypeMap

public static Map m_wsdlTypeMap

m_portalSystemRef

protected static Object m_portalSystemRef

m_contextFactory

protected static Object m_contextFactory

m_commandProvider

protected static Object m_commandProvider
Constructor Detail

InProcHelper

public InProcHelper()
Method Detail

getWsdlTypeMap

public static Map getWsdlTypeMap()

getPortalTypeMap

public static Map getPortalTypeMap()

loadClazz

public static Class loadClazz(String className)
                       throws ClassNotFoundException
Throws:
ClassNotFoundException

toWsdlType

public static Object toWsdlType(Object portalObj)

toPortalType

public static Object toPortalType(Object wsdlObj)

getPortalContextFactory

public static Object getPortalContextFactory()
                                      throws ClassNotFoundException
Throws:
ClassNotFoundException

getPortalContext

public static Object getPortalContext()
                               throws PortalClientException
Throws:
PortalClientException

getPortalSystem

public static Object getPortalSystem()
                              throws PortalClientException
Throws:
PortalClientException

getCommandProvider

public static Object getCommandProvider()
                                 throws PortalClientException
Throws:
PortalClientException

getObjectProperties

public static Map getObjectProperties(Object obj)
                               throws PortalClientException
Throws:
PortalClientException

acquireURI

public static Object acquireURI(String uriString)
                         throws PortalClientException
Throws:
PortalClientException

getUriPropertyAsString

public static String getUriPropertyAsString(Object obj)
                                     throws PortalClientException
Throws:
PortalClientException

getPagingCookie

public static PagingCookie getPagingCookie(Object obj)
                                    throws PortalClientException
Throws:
PortalClientException

getViewsFromListView

public static View[] getViewsFromListView(Object fromObj)
                                   throws PortalClientException
Throws:
PortalClientException

getUrisFromThingIDList

public static URI[] getUrisFromThingIDList(Object fromObj)
                                    throws PortalClientException
Throws:
PortalClientException

createCommandBean

public static Object createCommandBean(Object portalContext,
                                       Object command,
                                       Map propMap)
                                throws PortalClientException
Throws:
PortalClientException

invokeCommand

public static Object invokeCommand(String commandName,
                                   Object[] args)
                            throws PortalClientException
Throws:
PortalClientException

toPortalURI

public static Object toPortalURI(URI wsdlURI)
                          throws PortalClientException
Throws:
PortalClientException

toWsdlURI

public static URI toWsdlURI(Object portalURI)
                     throws PortalClientException
Throws:
PortalClientException

toWsdlView

public static View toWsdlView(Object fromObj)
                       throws PortalClientException
Throws:
PortalClientException

toWsdlListView

public static ListView toWsdlListView(Object fromObj)
                               throws PortalClientException
Throws:
PortalClientException

toPortalPagingCookie

public static Object toPortalPagingCookie(PagingCookie fromObj)

toWsdlPagingCookie

public static PagingCookie toWsdlPagingCookie(Object fromObj)
                                       throws PortalClientException
Throws:
PortalClientException

toWsdlThingIDList

public static ThingIDList toWsdlThingIDList(Object fromObj)
                                     throws PortalClientException
Throws:
PortalClientException

toWsdlMap

public static Hashtable toWsdlMap(Object fromObj)
                           throws PortalClientException
Throws:
PortalClientException

toWsdlList

public static Object[] toWsdlList(Object fromObj)
                           throws PortalClientException
Throws:
PortalClientException

toPortalLocale

public static Locale toPortalLocale(Locale fromObj)

toWsdlLocale

public static Locale toWsdlLocale(Object fromObj)

toWsdlTypedAttribute

public static TypedAttribute toWsdlTypedAttribute(Object fromObj)
                                           throws PortalClientException
Throws:
PortalClientException

toWsdlAliasValue

public static AliasValue toWsdlAliasValue(Object fromObj)
                                   throws PortalClientException
Throws:
PortalClientException

toPortalAliasValue

public static Object toPortalAliasValue(AliasValue fromObj)
                                 throws PortalClientException
Throws:
PortalClientException

getLocalVMID

public static String getLocalVMID()
                           throws PortalClientException
Throws:
PortalClientException