wt.adapter
Class AdapterMethods

java.lang.Object
  extended bywt.adapter.AdapterMethods

public class AdapterMethods
extends Object

The AdapterMethods class represents a collection of methods that correspond to Info*Engine webjects. There are also various helper methods contained within.


Constructor Summary
AdapterMethods()
           
 
Method Summary
static IeNode argsToIeNode(String[] args)
          Method call that turns an array of String's into a webject.
static IeGroup invoke(IeNode webject, IeGroup groupIn)
          Dispatch to the method named in the request.
static void main(String[] args)
           
static IeNode persistableToIeNode(Persistable obj)
          Morph a Persistable into an IeNode.
static IeGroup queryObjects(IeNode webject)
          Method call that performs the 'Query-Objects' webject
static IeGroup queryResultToIeObject(QueryResult objects)
          Morph a QueryResult into a IeGroup
static IeGroup relatedObjects(IeNode webject)
          Method call that performs the 'Related-Objects' webject
static IeGroup validateUser(IeNode webject)
          Method call that performs the 'Validate-User' webject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdapterMethods

public AdapterMethods()
Method Detail

main

public static void main(String[] args)

invoke

public static IeGroup invoke(IeNode webject,
                             IeGroup groupIn)
Dispatch to the method named in the request.

Returns:
IeNode

persistableToIeNode

public static IeNode persistableToIeNode(Persistable obj)
                                  throws FederationServicesException
Morph a Persistable into an IeNode.

Returns:
IeNode
Throws:
FederationServicesException

queryResultToIeObject

public static IeGroup queryResultToIeObject(QueryResult objects)
                                     throws FederationServicesException
Morph a QueryResult into a IeGroup

Returns:
IeGroup
Throws:
FederationServicesException

relatedObjects

public static IeGroup relatedObjects(IeNode webject)
                              throws FederationServicesException,
                                     WTException
Method call that performs the 'Related-Objects' webject

Returns:
IeGroup
Throws:
FederationServicesException
WTException

validateUser

public static IeGroup validateUser(IeNode webject)
Method call that performs the 'Validate-User' webject. This webject is stubbed in to always succeed such that we can use 'client' to test the WindChill adapter.

Returns:
IeGroup

queryObjects

public static IeGroup queryObjects(IeNode webject)
                            throws FederationServicesException,
                                   WTException
Method call that performs the 'Query-Objects' webject

Returns:
IeGroup
Throws:
FederationServicesException
WTException

argsToIeNode

public static IeNode argsToIeNode(String[] args)
Method call that turns an array of String's into a webject. The strings are assumed to be in pairs of keys and values.

Returns:
IeGroup