com.ibm.pim.factories
Class PIMContextFactory

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

Deprecated.

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
          Deprecated.  
static java.lang.String DEFAULT_CONTEXT_CLASS
          Deprecated. Current designated implementation DEFAULT_CONTEXT_CLASS
static java.lang.String DEFAULT_CONTEXT_CLASS_BASE_CONTEXT_SET_METHOD
          Deprecated.  
 
Constructor Summary
PIMContextFactory()
          Deprecated.  
 
Method Summary
static Context getContext(java.lang.String userName, java.lang.String userPassword, java.lang.String userCompany)
          Deprecated. Instantiate a new API Context Object based upon username, password and company code.
static Context getCurrentContext()
          Deprecated. Get current context.
static void setCurrentContext(Context context)
          Deprecated. Sets the current context for the thread this is called in.
 
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
Deprecated. 
See Also:
Constant Field Values

DEFAULT_CONTEXT_CLASS

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

See Also:
Constant Field Values

DEFAULT_CONTEXT_CLASS_BASE_CONTEXT_SET_METHOD

public static final java.lang.String DEFAULT_CONTEXT_CLASS_BASE_CONTEXT_SET_METHOD
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

PIMContextFactory

public PIMContextFactory()
Deprecated. 
Method Detail

getCurrentContext

public static Context getCurrentContext()
Deprecated. 
Get current context. This obviates the need to pass around the context object. Note, the context object will be specific to a thread.

Returns:
Last context either created or from a call to setCurrentContxt()

setCurrentContext

public static void setCurrentContext(Context context)
                              throws java.lang.Exception
Deprecated. 
Sets the current context for the thread this is called in.

Parameters:
context -
Throws:
java.lang.Exception

getContext

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

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