|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.logging.LoggingFormatter atg.userprofiling.email.TemplateEmailInfo atg.userprofiling.email.TemplateEmailInfoImpl
public class TemplateEmailInfoImpl
A concrete extension of the TemplateEmailInfo class that contains the
standard email message attributes as properties (messageFrom
,
messageSubject
, etc.) and uses them to construct Message
objects.
TemplateEmailInfo
,
MessageContentProcessor
,
Message
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
PROFILE_ID_TRACKING_DATA_KEY
The key used to store the profileId in the outgoing email tracking data |
Fields inherited from class atg.nucleus.logging.LoggingFormatter |
---|
mApplicationLogger, mErrorCount, mLoggingDebug, mLoggingError, mLoggingInfo, mLoggingTrace, mLoggingWarning, mWarningCount |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
TemplateEmailInfoImpl()
|
Method Summary | |
---|---|
protected void |
appendProperties(java.lang.StringBuffer pBuffer)
Append any properties for debugging. |
TemplateEmailInfo |
copy()
Returns a copy of this TemplateEmailInfo. |
void |
copyPropertiesTo(TemplateEmailInfo pCopy)
Copy known properties to pCopy. |
javax.mail.Message |
createMessage(java.lang.String pRecipient,
java.lang.String[] pContents,
java.lang.String[] pContentTypes)
Creates and returns a Message object with the given email recipient and content. |
javax.mail.Message |
createMessage(java.lang.String pRecipient,
java.lang.String pContent,
java.lang.String pContentType)
Creates and returns a Message object with the given email recipient and content. |
MessageContentProcessor |
getContentProcessor()
Returns the MessageContentProcessor object used to process the message text and set the content of the email message. |
protected java.util.Locale |
getLocaleForMessageResources()
Returns the locale used for message resource lookup in following order: (1) 'local' param in request (2) messageResourceLocale if set (3) current user locale |
java.lang.String |
getMailingName()
Returns the MailingName field for the email. |
java.lang.String |
getMailingNameResourceKey()
Returns the message bundle resource key for the MailingName field for the email. |
java.lang.String |
getMessageBcc()
Returns the Bcc field for the email. |
java.lang.String |
getMessageBccResourceKey()
Returns the message bundle resource key for the Bcc field for the email. |
java.lang.String |
getMessageCc()
Returns the CC field for the email. |
java.lang.String |
getMessageCcResourceKey()
Returns the message bundle resource key for the CC field for the email. |
java.lang.String |
getMessageFrom()
Returns the From field for the email. |
java.lang.String |
getMessageFromResourceKey()
Returns the message bundle resource key for the From field for the email. |
java.lang.String |
getMessageReplyTo()
Returns the ReplyTo field for the email. |
java.lang.String |
getMessageReplyToResourceKey()
Returns the message bundle resource key for the ReplyTo field for the email. |
java.lang.String |
getMessageResourceBundleName()
Gets the name for MessageResourceBundle |
java.util.Locale |
getMessageResourceLocale()
Gets the Locale used to lookup resources for the email |
java.lang.String |
getMessageSubject()
Returns the Subject field for the email. |
java.lang.String |
getMessageSubjectResourceKey()
Returns the message bundle resource key for the Subject field for the email. |
java.lang.String |
getMessageTo()
Returns the To field for the email. |
java.lang.String |
getMessageToResourceKey()
NOTE: Generally we should leave the messageToResourceKey null since defining a message in the resource bundle will always override the pRecipients passed into createMessage. |
java.lang.String |
getProfileId()
Gets the profile id associated with the email. |
java.util.Map |
getTrackingData()
Returns the tracking data to associate with the email. |
atg.userprofiling.email.TemplateEmailTransitoryInfo |
getTransitoryInfo()
Get the transitory info. |
protected java.util.ResourceBundle |
getUserMessageResourceBundle()
Resource bundle for uses request Locale |
void |
setContentProcessor(MessageContentProcessor pContentProcessor)
Sets the MessageContentProcessor object used to process the message text and set the content of the email message. |
void |
setMailingName(java.lang.String pMailingName)
Sets the MailingName field for the email. |
void |
setMailingNameResourceKey(java.lang.String pMailingNameResourceKey)
Sets the message bundle resource key for the MailingName field for the email. |
void |
setMessageBcc(java.lang.String pMessageBcc)
Sets the Bcc field for the email. |
void |
setMessageBccResourceKey(java.lang.String pMessageBccResourceKey)
Sets the message bundle resource key for the Bcc field for the email. |
void |
setMessageCc(java.lang.String pMessageCc)
Sets the CC field for the email. |
void |
setMessageCcResourceKey(java.lang.String pMessageCcResourceKey)
Sets the message bundle resource key for the CC field for the email. |
void |
setMessageFrom(java.lang.String pMessageFrom)
Sets the From field for the email. |
void |
setMessageFromResourceKey(java.lang.String pMessageFromResourceKey)
Sets the message bundle resource key for the From field for the email. |
void |
setMessageReplyTo(java.lang.String pMessageReplyTo)
Sets the ReplyTo field for the email. |
void |
setMessageReplyToResourceKey(java.lang.String pMessageReplyToResourceKey)
Sets the message bundle resource key for the ReplyTo field for the email. |
void |
setMessageResourceBundleName(java.lang.String pMessageResourceBundleName)
Sets the the name for MessageResourceBundle. |
void |
setMessageResourceLocale(java.util.Locale pMessageResourceLocale)
Sets the Locale used to lookup resources for the email |
void |
setMessageSubject(java.lang.String pMessageSubject)
Sets the Subject field for the email. |
void |
setMessageSubjectResourceKey(java.lang.String pMessageSubjectResourceKey)
Sets the message bundle resource key for the Subject field for the email. |
void |
setMessageTo(java.lang.String pMessageTo)
Sets the To field for the email. |
void |
setMessageToResourceKey(java.lang.String pMessageToResourceKey)
NOTE: Generally we should leave the messageToResourceKey null since defining a message in the resource bundle will always override the pRecipients passed into createMessage. |
void |
setProfileId(java.lang.String pProfileId)
Sets the profile id associated with the email. |
void |
setTrackingData(java.util.Map pTrackingData)
Sets the tracking data to associate with the email. |
void |
setTransitoryInfo(atg.userprofiling.email.TemplateEmailTransitoryInfo pTransitoryInfo)
Set the transitory info. |
boolean |
supportsMultipleContents()
Whether or not we support creating a message with multiple contents passed in. |
Methods inherited from class atg.nucleus.logging.LoggingFormatter |
---|
format, getErrorCount, getLoggingForVlogging, getLoggingIdentifier, getWarningCount, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, setApplicationLogger, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String PROFILE_ID_TRACKING_DATA_KEY
Constructor Detail |
---|
public TemplateEmailInfoImpl()
Method Detail |
---|
public java.lang.String getMailingName()
public void setMailingName(java.lang.String pMailingName)
public java.lang.String getMessageReplyTo()
public void setMessageReplyTo(java.lang.String pMessageReplyTo)
public void setMessageTo(java.lang.String pMessageTo)
public java.lang.String getMessageTo()
public java.lang.String getMessageFrom()
public void setMessageFrom(java.lang.String pMessageFrom)
public java.lang.String getMessageCc()
public void setMessageCc(java.lang.String pMessageCc)
public java.lang.String getMessageBcc()
public void setMessageBcc(java.lang.String pMessageBcc)
public java.lang.String getMessageSubject()
public void setMessageSubject(java.lang.String pMessageSubject)
public java.lang.String getMailingNameResourceKey()
public void setMailingNameResourceKey(java.lang.String pMailingNameResourceKey)
public java.lang.String getMessageReplyToResourceKey()
public void setMessageReplyToResourceKey(java.lang.String pMessageReplyToResourceKey)
public java.lang.String getMessageFromResourceKey()
public void setMessageFromResourceKey(java.lang.String pMessageFromResourceKey)
public java.lang.String getMessageCcResourceKey()
public void setMessageCcResourceKey(java.lang.String pMessageCcResourceKey)
public java.lang.String getMessageBccResourceKey()
public void setMessageBccResourceKey(java.lang.String pMessageBccResourceKey)
public java.lang.String getMessageSubjectResourceKey()
public void setMessageSubjectResourceKey(java.lang.String pMessageSubjectResourceKey)
public java.lang.String getMessageToResourceKey()
public void setMessageToResourceKey(java.lang.String pMessageToResourceKey)
public java.util.Map getTrackingData()
public void setTrackingData(java.util.Map pTrackingData)
public java.lang.String getProfileId()
public void setProfileId(java.lang.String pProfileId)
public java.util.Locale getMessageResourceLocale()
public void setMessageResourceLocale(java.util.Locale pMessageResourceLocale)
public java.lang.String getMessageResourceBundleName()
public void setMessageResourceBundleName(java.lang.String pMessageResourceBundleName)
protected java.util.ResourceBundle getUserMessageResourceBundle() throws TemplateEmailException
TemplateEmailException
protected java.util.Locale getLocaleForMessageResources()
public MessageContentProcessor getContentProcessor()
public void setContentProcessor(MessageContentProcessor pContentProcessor)
public void setTransitoryInfo(atg.userprofiling.email.TemplateEmailTransitoryInfo pTransitoryInfo)
public atg.userprofiling.email.TemplateEmailTransitoryInfo getTransitoryInfo()
public boolean supportsMultipleContents()
TemplateEmailInfo
supportsMultipleContents
in class TemplateEmailInfo
public javax.mail.Message createMessage(java.lang.String pRecipient, java.lang.String pContent, java.lang.String pContentType) throws atg.userprofiling.email.InvalidSenderAddressException, InvalidRecipientAddressException, TemplateEmailException
createMessage
in class TemplateEmailInfo
pRecipient
- the email address of the main recipient, corresponding to a
particular profilepContent
- the message text obtained by instantiating the template for a
particular profilepContentType
- the content type obtaine by instantiating the template for a
particular profile (example : text/plain).
InvalidRecipientAddressException
- if the recipient email address is null, malformed, or invalid
TemplateEmailException
- if any other problem is encountered while composing the
Message
atg.userprofiling.email.InvalidSenderAddressException
public javax.mail.Message createMessage(java.lang.String pRecipient, java.lang.String[] pContents, java.lang.String[] pContentTypes) throws atg.userprofiling.email.InvalidSenderAddressException, InvalidRecipientAddressException, TemplateEmailException
createMessage
in class TemplateEmailInfo
pRecipient
- the email address of the main recipient, corresponding to a
particular profilepContent
- the message text obtained by instantiating the template for a
particular profilepContentType
- the content type obtaine by instantiating the template for a
particular profile (example : text/plain).
InvalidRecipientAddressException
- if the recipient email address is null, malformed, or invalid
TemplateEmailException
- if any other problem is encountered while composing the
Message
atg.userprofiling.email.InvalidSenderAddressException
public void copyPropertiesTo(TemplateEmailInfo pCopy)
copyPropertiesTo
in class TemplateEmailInfo
pCopy
- the info to which to copy properties.public TemplateEmailInfo copy()
copy
in class TemplateEmailInfo
protected void appendProperties(java.lang.StringBuffer pBuffer)
appendProperties
in class TemplateEmailInfo
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |