com.ibm.pim.factories
Class PIMContextFactory
java.lang.Object
com.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
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 |
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
PIMContextFactory
public PIMContextFactory()
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 useriduserPassword
- The user passworduserCompany
- The company id registered
- Returns:
- API Context Object for the specified credentials
- Throws:
java.lang.Exception
- if an error occurs