com.ibm.pim.factories
Class PIMContextFactory

java.lang.Object
  extended bycom.ibm.pim.factories.PIMContextFactory
Direct Known Subclasses:
PIMWebServicesContextFactory

public class PIMContextFactory
extends java.lang.Object

Factory for retrieving a context for a given set of credentials


Field Summary
static java.lang.String copyright
           
static java.lang.String DEFAULT_CONTEXT_CLASS
          Current designated implementation DEFAULT_CONTEXT_CLASS
 
Constructor Summary
PIMContextFactory()
           
 
Method Summary
static Context getContext(java.lang.String userName, java.lang.String userPassword, java.lang.String userCompany)
          Instantiate a new API Context Object based upon username, password and company code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
See Also:
Constant Field Values

DEFAULT_CONTEXT_CLASS

public static final java.lang.String DEFAULT_CONTEXT_CLASS
Current designated implementation DEFAULT_CONTEXT_CLASS

See Also:
Constant Field Values
Constructor Detail

PIMContextFactory

public PIMContextFactory()
Method Detail

getContext

public static Context getContext(java.lang.String userName,
                                 java.lang.String userPassword,
                                 java.lang.String userCompany)
                          throws java.lang.Exception
Instantiate a new API Context Object based upon username, password and company code

Parameters:
userName - The userid
userPassword - The user password
userCompany - The company id registered
Returns:
API Context Object for the specified credentials
Throws:
java.lang.Exception - if an error occurs