|
Oracle Discussions Java API Reference 10g Release 1 (10.1.2) B25496-01 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
TdStoreFactory creates TdStore instances for discussions users.
The TdStoreFactory is configued so that it will connect to a given Discussions Store and therefore a given email domain. Users logging in through this TdStoreFactory should be email provisioned for the same email domain configured for this TdStoreFactory instance.
Sample code snippet illustrating the usage of TdStoreFactory
//Create a TdInitialContext Object which represents an extension of a map //holding various key-value pairs. TdInitialContext tdic = new TdInitialContext(mEnv); //Create an instance of TdStoreManager which initialized various sessions like //Oracle java mail session, javax.mail session, initialized logger etc. TdStoreManager s_tdStoreMgr = TdStoreManager.createInstance(tdic); //Create an instance of TdStoreFactory, which is a factory class providing methods to //create a TdStore instance. TdStoreFactory s_tdsf = s_tdStoreMgr.getTdStoreFactory(); //Create an TdUserFactory, which is a factory class providing methods to create TdUser objects. TdUserFactory ouf = TdUserFactory.getInstance(); //Extract a tduser from the userfactory based on the guid. TdUser tduser = null; tduser = ouf.getTdUserByGuid(userGuid); //Create a tdstore for this user. tdStore = s_tdsf.getTdStore(tduser,true);
TdStore
, TdStoreManager
Method Summary | |
java.lang.String |
getEmailDomain() Returns the email domain for which this TdStoreFactory is configured. |
TdStore |
getTdStore(TdUser tdusr) Returns a TdStore to be used for this mid-tier. |
TdStore |
getTdStore(TdUser tdusr, boolean bUpdateUserLogin) Returns a TdStore to be used for this mid-tier. |
Method Detail |
public TdStore getTdStore(TdUser tdusr) throws TdException
tdusr
- the user for whom tdstore is being retrieved.public TdStore getTdStore(TdUser tdusr, boolean bUpdateUserLogin) throws TdException
tdusr
- the user for whom the tdstore is being returned.bUpdateUserLogin
- boolean values indicating whether user logintime is to be updated.public java.lang.String getEmailDomain()
|
Oracle Discussions Java API Reference 10g Release 1 (10.1.2) B25496-01 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |