|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.fc.WTObject
wt.notify.ObjectSubscription
public class ObjectSubscription
The ObjectSubscription class represents subscription requests
on Notifiable objects. Each subscription object represents
the interest of a single subscriber on an event that may occur to a Notifiable
object. The event can be post-filtered by a name-value pair, where name
is the name of an attribute and value is the String representation of
the value of the attribute. Expiration dates can be associated with subscriptions.
The action to be performed upon occurrence of the event depends on the
subscriber. If the subscriber is a user, an email message notifying the
user of the event is sent. The subscription objects contain attributes
to be used when constructing the message (subject, HTML template name
and message body).
Use the newObjectSubscription static factory method(s),
not the ObjectSubscription constructor, to construct instances
of this class. Instances must be constructed using the static factory(s),
in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
NotificationSubscription,
NotifySubscriptionRecipient,
NotifySubscriptionTarget,
Serialized Form| Field Summary | |
|---|---|
static String |
EVENT_KEY
Deprecated. |
static String |
SUBJECT
Deprecated. |
| Method Summary | |
|---|---|
String |
getAttributeValue(String name)
Deprecated. |
String |
getEventKey()
Deprecated. |
String |
getSubject()
Deprecated. |
Notifiable |
getTarget()
Deprecated. |
protected void |
initialize(ObjectSubscription subscription)
Deprecated. |
static ObjectSubscription |
newObjectSubscription()
Deprecated. |
static ObjectSubscription |
newObjectSubscription(ObjectSubscription subscription)
Deprecated. |
void |
setAttributeValue(String name,
String value)
Deprecated. |
void |
setEventKey(String a_EventKey)
Deprecated. |
void |
setSubject(String a_Subject)
Deprecated. |
void |
setTarget(Notifiable target)
Deprecated. |
| Methods inherited from class wt.fc.WTObject |
|---|
getDisplayIdentifier, getDisplayIdentity, getDisplayType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String EVENT_KEY
public static final String SUBJECT
| Method Detail |
|---|
public String getEventKey()
public void setEventKey(String a_EventKey)
throws WTPropertyVetoException
a_EventKey -
WTPropertyVetoExceptionpublic String getSubject()
public void setSubject(String a_Subject)
throws WTPropertyVetoException
a_Subject -
WTPropertyVetoException
public static ObjectSubscription newObjectSubscription(ObjectSubscription subscription)
throws WTException
subscription -
WTException
protected void initialize(ObjectSubscription subscription)
throws WTException
subscription -
WTException
public static ObjectSubscription newObjectSubscription()
throws WTException
WTException
public void setTarget(Notifiable target)
throws WTException
target - target of subscription
WTExceptionpublic Notifiable getTarget()
public String getAttributeValue(String name)
name - attribute name
public void setAttributeValue(String name,
String value)
name - attribute namevalue - String representation of the named attribute's value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||