|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.mail.NotificationMessage
public class NotificationMessage
Represents an email message with recipients, subject, a plain text message, and an optional HTML message. Both a plain text AND HTML formatted body is supported within the same message.It is internally used for upgrade. Implements Importable interface to indicate deserializer to perform the default object import even if the class definition has changed. | |
If notification message is sent with the topic then the post office collects similar notifications for a period of time and combines those into a single notification which is sent to the user. |
Constructor Summary | |
---|---|
NotificationMessage()
The default constructor of NotificationMessage.Initializes subject, message, htmlMessage to blank string. |
|
NotificationMessage(java.util.Collection addresses,
java.lang.String subject,
java.lang.String textMessage,
java.lang.String htmlMessage)
The constructor of NotificationMessage. |
|
NotificationMessage(java.util.Collection addresses,
java.lang.String subject,
java.lang.String textMessage,
java.lang.String htmlMessage,
java.lang.String tenant,
java.lang.String locale)
The constructor of NotificationMessage when taking advantage of Post Office functionality. |
|
NotificationMessage(java.util.Collection addresses,
java.lang.String subject,
java.lang.String textMessage,
java.lang.String htmlMessage,
java.lang.String tenant,
java.lang.String topic,
java.lang.String locale)
The constructor of NotificationMessage when taking advantage of Post Office functionality. |
Method Summary | |
---|---|
java.util.Collection |
getEmailAddresses()
Returns the recipients of the message. |
java.lang.String |
getHtmlMessage()
Returns the HTML message body (if any). |
java.lang.String |
getLocale()
Returns the locale the message was written in. |
java.lang.String |
getMessage()
Returns the text message body. |
java.lang.String |
getSubject()
Returns the subject of the message. |
java.lang.String |
getTenant()
Returns the tenant of this message. |
java.lang.String |
getTopic()
Returns the topic of the message (if any). |
void |
setEmailAddresses(java.util.Collection addresses)
Changes the recipients of the message. |
void |
setHtmlMessage(java.lang.String htmlMessage)
Change the HTML message body. |
void |
setLocale(java.lang.String locale)
Changes the locale, the message was written in.The format of locale is en_US. |
void |
setMessage(java.lang.String textMessage)
Changes the text body of the message. |
void |
setSubject(java.lang.String subject)
Changes the subject of the message. |
void |
setTenant(java.lang.String tenant)
Changes the tenant for this message. |
void |
setTopic(java.lang.String topic)
Changes the topic of the message. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NotificationMessage()
public NotificationMessage(java.util.Collection addresses, java.lang.String subject, java.lang.String textMessage, java.lang.String htmlMessage)
addresses
- The collection of email address (Strings).The format of address is account@host.domainsubject
- The subject.textMessage
- The plain text message.htmlMessage
- The HTML message.null means the email content will have no plain text.public NotificationMessage(java.util.Collection addresses, java.lang.String subject, java.lang.String textMessage, java.lang.String htmlMessage, java.lang.String tenant, java.lang.String topic, java.lang.String locale)
addresses
- The collection of email address (Strings).The format of address is account@host.domainsubject
- The subject of the email. null means the email will have no SubjecttextMessage
- The plain text message of the email. null means the email content will have no plain text.htmlMessage
- The HTML message of the email. null means the email content will have no HTML.tenant
- The short name of the tenant to use when applying email aggregation template. null means use the
system default tenant. NOTE: this is not the tenant DNtopic
- The topic to use for grouping emails. null means grouping is not desired.locale
- The locale of the recipient of this message (ie, en_US.public NotificationMessage(java.util.Collection addresses, java.lang.String subject, java.lang.String textMessage, java.lang.String htmlMessage, java.lang.String tenant, java.lang.String locale)
addresses
- The collection of email address (Strings).The format of address is account@host.domainsubject
- The subject of the email. null means the email will have no
SubjecttextMessage
- The plain text message of the email. null means the email
content will have no plain text.htmlMessage
- The HTML message of the email. null means the email content
will have no HTML.tenant
- The short name of the tenant to use when applying email
aggregation template. null means use the system default
tenant. NOTE: this is not the tenant DNlocale
- The locale of the recipient of this message.Method Detail |
---|
public java.util.Collection getEmailAddresses()
public void setEmailAddresses(java.util.Collection addresses)
addresses
- Collection of the new recipients (Strings).public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
subject
- New message subject.public java.lang.String getMessage()
public void setMessage(java.lang.String textMessage)
textMessage
- New text body.public java.lang.String getHtmlMessage()
public void setHtmlMessage(java.lang.String htmlMessage)
htmlMessage
- String holding the new HTML formatted message body.public java.lang.String getTopic()
public void setTopic(java.lang.String topic)
topic
- Topic of the message. An null topic indicates the message does not have
a topic and should not be aggregated by the post office feature.public java.lang.String getLocale()
public void setLocale(java.lang.String locale)
locale
- Locale of the message.public java.lang.String getTenant()
public void setTenant(java.lang.String tenant)
tenant
- The shortname of the new tenant for this message.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |