Package wt.notify
Class NotificationSet
java.lang.Object
wt.notify.NotificationSet
- All Implemented Interfaces:
Externalizable,Serializable,Evolvable
A notification set associates a message with a list of recipients. This class
is the "workhorse" of the policy based notification functionality. Message
recipients can be users or groups (principals). Groups are resolved to users
at the time the event occurs.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecipient(Object recipient) Adds a recipient to the notification set.Gets the value of the attribute: messageBody; Body of notification message.Returns an enumeration consisting of references to the recipients.Gets the value of the attribute: subject; Notification message subject.Gets the value of the attribute: templateName; Name of the template used to create notification.static NotificationSetNo-arg constructor.voidRemoves all recipients from the notification set.voidremoveRecipient(Object recipient) Removes a recipient from the notification set.voidsetMessageBody(String a_MessageBody) Sets the value of the attribute: messageBody; Body of notification message.voidsetSubject(String a_Subject) Sets the value of the attribute: subject; Notification message subject.voidsetTemplateName(String a_TemplateName) Sets the value of the attribute: templateName; Name of the template used to create notification.toString()Returns a string representation of the object.
-
Method Details
-
getTemplateName
Gets the value of the attribute: templateName; Name of the template used to create notification.
Supported API: true- Returns:
- String
-
setTemplateName
Sets the value of the attribute: templateName; Name of the template used to create notification.
Supported API: true- Parameters:
a_TemplateName-- Throws:
WTPropertyVetoException
-
getSubject
Gets the value of the attribute: subject; Notification message subject.
Supported API: true- Returns:
- String
-
setSubject
Sets the value of the attribute: subject; Notification message subject.
Supported API: true- Parameters:
a_Subject-- Throws:
WTPropertyVetoException
-
getMessageBody
Gets the value of the attribute: messageBody; Body of notification message. The body is to be inserted in message template, if it exists.
Supported API: true- Returns:
- String
-
setMessageBody
Sets the value of the attribute: messageBody; Body of notification message. The body is to be inserted in message template, if it exists.
Supported API: true- Parameters:
a_MessageBody-- Throws:
WTPropertyVetoException
-
newNotificationSet
No-arg constructor.
Supported API: true- Returns:
- NotificationSet
- Throws:
WTException
-
toString
Returns a string representation of the object.
Supported API: true -
addRecipient
Adds a recipient to the notification set. A recipient can be a user or a group (principal). The parameter can be either the object or a reference to the object.
Supported API: true- Parameters:
recipient-- Throws:
WTException
-
removeRecipient
Removes a recipient from the notification set. A recipient can be a user or a group (principal). The parameter can be either the object or a reference to the object.
Supported API: true- Parameters:
recipient-- Throws:
WTException
-
removeAllRecipients
Removes all recipients from the notification set.
Supported API: true- Throws:
WTException
-
getRecipients
Returns an enumeration consisting of references to the recipients.
Supported API: true- Returns:
- EnumeratorVector
- Throws:
WTException
-