|
Oracle Collaboration Suite Discussions Java API Reference 10g (10.1.1) Part No. B16232-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.discussions.sdk.TdSubscription
Oracle discussions allows users to subscribe to the discussions elements of their choice, to which they have access to.
Once the element is subscribed by a user, a notification email will be sent to him on any change in that element.
Once created, the subscription remains in place till
Subscriptions allow discussions users to monitor the changes to the discussions elements, without actually logging into the discussions instance.
Sample code snippet to illustrate the usage of TdSubscription
//tdStore is an instance of TdStore class. //Extract the Subscription Manager from teh tdStore instance. TdSubscriptionManager tdSbtMgr = tdStore.getSubscriptionManager(); //Extract subscription on a particulat thread from the subscription manager. TdSubscription tdSbt = tdSbtMgr.getSubscription(tdt);//tdt is a thread instance which is subscribed. //Extract the subscriber information from the subscription object. TdUser tdu = tdSbt.getSubscriber();
TdSubscriptionManager.java
Field Summary | |
static int |
DIGEST Indicates that the notification sent is a forward to the user. |
static int |
EMAIL Indicates the notification sent is an email to the user. |
Constructor Summary | |
TdSubscription(TdUser usrctx, TdContainer tdc, java.lang.String email, int iType) Constructor to initialize a TdSubscription taking in TdUser - Oracle Discussions user requesting subscription TdContainer - Container on which subscription is being requested email - Email Address to which the notifications should be sent iType - The Subscription type |
Method Summary | |
java.lang.String |
getEmail() Returns the email address of the user requesting subscription. |
TdUser |
getSubscriber() Returns the user requesting the subscription. |
TdContainer |
getTdContainer() Returns the container on which the subscription is requested. |
int |
getType() Returns the subscription type for the current subscription. |
void |
setEmail(java.lang.String email) Sets the email address of the user requesting subscription. |
void |
setSubscriber(TdUser usrctx) Sets the user requesting the subscription. |
void |
setTdContainer(TdContainer tdc) Sets the container on which the subscription is being requested. |
void |
setType(int iType) Sets the subscription type for the current subscription. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int EMAIL
public static final int DIGEST
Constructor Detail |
public TdSubscription(TdUser usrctx, TdContainer tdc, java.lang.String email, int iType)
Constructor to initialize a TdSubscription taking in
tdc
- Container on which subscription is being requestedemail
- Email Address to which the notifications should be sentiType
- The Subscription typeMethod Detail |
public TdUser getSubscriber()
public void setSubscriber(TdUser usrctx)
usrctx
- the tduser requesting subscription.public TdContainer getTdContainer()
public void setTdContainer(TdContainer tdc)
tdc
- the tdcontainer on which the subscription is being requested.public java.lang.String getEmail()
public void setEmail(java.lang.String email)
email
- email address of the user requesting subscriptionpublic int getType()
public void setType(int iType)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |