|
Jive API (4.5.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.EmailMessage
public class EmailMessage
Represents an Email message that can be sent using EmailManager
EmailManager,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
EmailMessage.EmailAddress
Represents an email address with a name like Andrew Wright <andrew@jivesoftware.com> |
| Field Summary | |
|---|---|
static java.lang.String |
FOOTER_PROPERTY
|
static java.lang.String |
HEADER_PROPERTY
|
| Constructor Summary | |
|---|---|
EmailMessage()
|
|
| Method Summary | |
|---|---|
void |
addAttachment(com.jivesoftware.util.InputStreamDataSource attachment)
Adds an attachment for this email message |
void |
addRecipient(EmailMessage.EmailAddress emailAddress)
Adds a recipient (to address) for this email message |
void |
addRecipient(java.lang.String name,
java.lang.String email)
Adds a recipient (to address) for this email message |
boolean |
equals(java.lang.Object o)
|
java.util.Collection<DataSource> |
getAttachments()
Returns the attachments of the email |
java.util.Map<java.lang.String,java.lang.Object> |
getContext()
Returns a map of replacement tokens to use in the email |
java.lang.String |
getHtmlBody()
Returns the html version of the body |
java.lang.String |
getHtmlBodyProperty()
|
java.util.Locale |
getLocale()
Return the locale for the email message. |
java.util.Collection<EmailMessage.EmailAddress> |
getRecipients()
Returns the recipients of the email |
EmailMessage.EmailAddress |
getReplyTo()
|
EmailMessage.EmailAddress |
getSender()
Returns the sender of them email |
java.lang.String |
getSubject()
Returns the subject of the email. |
java.lang.String |
getSubjectProperty()
Returns the property name for subject of the email |
java.lang.String |
getTextBody()
Returns the text version of the body. |
java.lang.String |
getTextBodyProperty()
Return the property name for the html version of the email body |
int |
hashCode()
|
boolean |
isBccSender()
If copySender is set to true, the sender will be BCCed on the message. |
boolean |
isIncludeHeaderAndFooter()
|
void |
setBccSender(boolean bccSender)
If copySender is set to true, the sender will be BCCed on the message. |
void |
setContext(java.util.Map<java.lang.String,java.lang.Object> context)
Sets the context map. |
void |
setHtmlBody(java.lang.String htmlBody)
Sets the text version of the body. |
void |
setHtmlBodyProperty(java.lang.String htmlBodyProperty)
|
void |
setIncludeHeaderAndFooter(boolean includeHeaderAndFooter)
|
void |
setLocale(java.util.Locale locale)
Set the locale for the email message. |
EmailMessage |
setReplyTo(EmailMessage.EmailAddress replyTo)
Sets the reply-to header for the email. |
EmailMessage |
setReplyTo(java.lang.String name,
java.lang.String email)
Sets the reply-to header for the email. |
void |
setSender(EmailMessage.EmailAddress sender)
Sets the address the email is sent from. |
void |
setSender(java.lang.String name,
java.lang.String email)
Sets the address the email is sent from. |
void |
setShouldFreemarkerParse(boolean shouldFreemarkerParse)
|
void |
setSubject(java.lang.String subject)
Sets the subject of the email. |
void |
setSubjectProperty(java.lang.String subjectProperty)
Sets the email's subject property name |
void |
setTextBody(java.lang.String textBody)
Sets the text version of the body. |
void |
setTextBodyProperty(java.lang.String textBodyProperty)
Set the property name for the html version of the email body |
boolean |
shouldFreemarkerParse()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String HEADER_PROPERTY
public static final java.lang.String FOOTER_PROPERTY
| Constructor Detail |
|---|
public EmailMessage()
| Method Detail |
|---|
public void addAttachment(com.jivesoftware.util.InputStreamDataSource attachment)
attachment - the data source representing the email message attachmentpublic void addRecipient(EmailMessage.EmailAddress emailAddress)
emailAddress - the recipient's address
public void addRecipient(java.lang.String name,
java.lang.String email)
name - the name of the recipientemail - the email address of the recipient
public void setSender(java.lang.String name,
java.lang.String email)
name - Name of the senderemail - Email address of the senderpublic void setSender(EmailMessage.EmailAddress sender)
sender - The sender's email addresspublic void setBccSender(boolean bccSender)
bccSender - Whether or not to copy the sender on the email.public boolean isBccSender()
public EmailMessage setReplyTo(java.lang.String name,
java.lang.String email)
name - the name of the entity who replies should be sent to for this email.email - the email address of the entity to whom replies are to be sent.
public EmailMessage setReplyTo(EmailMessage.EmailAddress replyTo)
replyTo - the email address of the entity to whom replies are to be sent.
public EmailMessage.EmailAddress getReplyTo()
public void setSubjectProperty(java.lang.String subjectProperty)
subjectProperty - the email's subjectpublic void setTextBodyProperty(java.lang.String textBodyProperty)
textBodyProperty - the property name for the html version of the email bodypublic java.util.Collection<DataSource> getAttachments()
public java.util.Collection<EmailMessage.EmailAddress> getRecipients()
public EmailMessage.EmailAddress getSender()
public java.lang.String getSubjectProperty()
public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
subject - the subject of the email.public java.lang.String getTextBodyProperty()
public java.lang.String getTextBody()
public void setTextBody(java.lang.String textBody)
textBody - the text version of the body.public java.lang.String getHtmlBody()
public void setHtmlBody(java.lang.String htmlBody)
htmlBody - the text version of the body.public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
locale - the locale for the email messagepublic java.util.Map<java.lang.String,java.lang.Object> getContext()
public void setContext(java.util.Map<java.lang.String,java.lang.Object> context)
context - the context.public java.lang.String getHtmlBodyProperty()
public void setHtmlBodyProperty(java.lang.String htmlBodyProperty)
public boolean shouldFreemarkerParse()
public void setShouldFreemarkerParse(boolean shouldFreemarkerParse)
public boolean isIncludeHeaderAndFooter()
public void setIncludeHeaderAndFooter(boolean includeHeaderAndFooter)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||