public class PersonalizedContentManagedEmailContent
extends java.lang.Object
implements com.ibm.commerce.emarketing.engine.PersonalizedEmailContent
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
Copyright.
|
Constructor and Description |
---|
PersonalizedContentManagedEmailContent(com.ibm.commerce.emarketing.engine.Recipient recipient)
Constructor that initializes this instance with a Recipient.
|
PersonalizedContentManagedEmailContent(com.ibm.commerce.emarketing.engine.Recipient recipient, java.lang.String messageId)
Constructor that initializes this instance with a Recipient and a messageId.
|
PersonalizedContentManagedEmailContent(java.lang.String messageId)
Constructor that initializes this instance with an e-mail template ID ( messageId ).
|
Modifier and Type | Method and Description |
---|---|
CommandContext | getCommandContext()
Returns the CommandContext, used by the tag engine implementation for parsing the content of e-mail message.
|
java.lang.String | getContent()
Gets the content of the e-mail message by parsing the content present in the emailContent table, corresponding to this e-mail template ID.
|
java.lang.String | getEmailTemplate()
This method help to get the email template.
|
java.lang.String | getMessageId()
Gets the messageId (email template Id) used to read e-mail content.
|
com.ibm.commerce.emarketing.engine.Recipient | getRecipient()
Gets the recipient for whom the e-mail will be personalized.
|
boolean | getSendEmail()
This method gets the setting whether the e-mail should be sent to the customer.
|
java.lang.String | getSubject()
Gets the subject corresponding to this template ID.
|
java.util.Map | getTagNameValueMapFromTemplateParsing()
This method help to get the name / value map for the tags in the content.
|
void | init()
This method help to initialise the plain text for the message subject & message content, This method need only run once just after the email content object just been created, or do lazy initialisation.
|
void | setCommandContext(CommandContext cc)
Sets the Command Context, which will be used by the TagEngine while parsing the e-mail content.
|
void | setMessageId(java.lang.String messageId)
Sets the messageId that will be used to fetch the content of the e-mail.
|
void | setRecipient(com.ibm.commerce.emarketing.engine.Recipient recipient)
Sets the recipient for whom the e-mail will be personalized.
|
void | setSendEmail(boolean newSendEmail)
This method sets whether the e-mail should be sent to the customer.
|
void | setTagParameters(java.lang.String tagParamName, java.lang.String tagParamValue)
Sets a name/value pair which will be added to the tag parameters, which will then be used while parsing the contents of e-mail template
|
public static final java.lang.String COPYRIGHT
public PersonalizedContentManagedEmailContent(java.lang.String messageId)
public PersonalizedContentManagedEmailContent(com.ibm.commerce.emarketing.engine.Recipient recipient)
public PersonalizedContentManagedEmailContent(com.ibm.commerce.emarketing.engine.Recipient recipient, java.lang.String messageId)
public void setRecipient(com.ibm.commerce.emarketing.engine.Recipient recipient)
public com.ibm.commerce.emarketing.engine.Recipient getRecipient()
public java.lang.String getMessageId()
public void setTagParameters(java.lang.String tagParamName, java.lang.String tagParamValue)
public void setMessageId(java.lang.String messageId)
public void init()
public java.lang.String getSubject()
public java.lang.String getEmailTemplate()
public java.util.Map getTagNameValueMapFromTemplateParsing()
public java.lang.String getContent()
public boolean getSendEmail()
public void setSendEmail(boolean newSendEmail)
public void setCommandContext(CommandContext cc)
public CommandContext getCommandContext()