public class DefaultEmailMessageParser extends java.lang.Object implements EmailMessageParser
Constructor and Description |
---|
DefaultEmailMessageParser() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<Variable> |
createRunTimeJSONObjectVars(DBEmailSend emailSend,
DBObject target,
Contact recipient) |
protected java.util.List<Variable> |
createRunTimeVars(DBEmailSend emailSend,
DBObject target,
Contact recipient) |
protected java.lang.String |
parseBasePath(DBEmailSend base,
java.lang.String parsingToken,
java.lang.String pth,
java.lang.String res,
boolean isHtml)
Parsing base path.
|
protected java.lang.String |
parseExpressInterestLink(DBEmailSend emailSend,
DBObject target,
java.lang.String key,
Contact recipient,
java.lang.String text) |
protected java.lang.String |
parseGlobalsPath(DBEmailSend base,
DBObject globals,
java.lang.String parsingToken,
java.lang.String pth,
java.lang.String res,
boolean isHtml)
Parsing the globals path, the target object that linked to base DBEmailSend.
|
protected java.lang.String |
parseInvitationLink(DBObject target,
java.lang.String key,
Contact recipient) |
java.lang.String |
parseMessage(DataSource ds,
java.lang.String msg,
DBEmailSend emailSend,
Contact recipient,
DBEmailRecipient[] allRecipientList,
boolean isParseRecipient,
boolean isHtml,
boolean isValidating)
Parsing the message for the corresponding EmailSend object.
|
java.lang.String |
parseMessage(DataSource ds,
java.lang.String msg,
DBEmailSend emailSend,
DBObject target,
Contact recipient,
DBEmailRecipient[] allRecipientList,
boolean isParseRecipient,
boolean isHtml,
boolean isValidating)
The original version of DBEmailSend.parseMessage().
|
protected java.lang.String |
parseMessageNew(DataSource ds,
java.lang.String msg,
DBEmailSend emailSend,
Contact recipient,
DBObject target,
DBObject globals,
DBEmailRecipient[] allRecipientList,
boolean isParseRecipient,
boolean isHtml,
boolean isValidating) |
protected java.lang.String |
parseRecipientPath(DBEmailSend base,
DBObject recipient,
DBEmailRecipient[] allRecipientList,
java.lang.String parsingToken,
java.lang.String pth,
java.lang.String res,
boolean isHtml)
Parsing the Recipient based path.
|
protected java.lang.String |
parseRestPath(DBEmailSend emailSend,
JSONObject json,
java.lang.String token,
boolean isHtml) |
protected java.lang.String |
parseTargetPath(DBEmailSend base,
DBObject target,
java.lang.String parsingToken,
java.lang.String pth,
java.lang.String res,
boolean isHtml)
Parsing the target path, the target object that linked to base DBEmailSend.
|
protected java.lang.String |
parseUnsubscribeLink(DBEmailSend emailSend,
Contact recipient,
java.lang.String text) |
public java.lang.String parseMessage(DataSource ds, java.lang.String msg, DBEmailSend emailSend, Contact recipient, DBEmailRecipient[] allRecipientList, boolean isParseRecipient, boolean isHtml, boolean isValidating) throws java.lang.Exception
EmailMessageParser
parseMessage
in interface EmailMessageParser
ds
- the data sourcemsg
- the messageisValidating
- the email template variable will be skipped if isValidating is true and ignoreValidating flag is checked for this template variablejava.lang.Exception
- Exception A serious problempublic java.lang.String parseMessage(DataSource ds, java.lang.String msg, DBEmailSend emailSend, DBObject target, Contact recipient, DBEmailRecipient[] allRecipientList, boolean isParseRecipient, boolean isHtml, boolean isValidating) throws java.lang.Exception
parseMessage
in interface EmailMessageParser
ds
- the data sourcemsg
- the messageemailSend
- the emailrecipient
- the recipientallRecipientList
- all recipient listtarget
- target DBObjectisValidating
- the email template variable will be skipped if isValidating is true and ignoreValidating flag is checked for this template variablejava.lang.Exception
- Exception A serious problemprotected java.util.List<Variable> createRunTimeVars(DBEmailSend emailSend, DBObject target, Contact recipient) throws java.lang.Exception
java.lang.Exception
protected java.util.List<Variable> createRunTimeJSONObjectVars(DBEmailSend emailSend, DBObject target, Contact recipient) throws java.lang.Exception
java.lang.Exception
protected java.lang.String parseMessageNew(DataSource ds, java.lang.String msg, DBEmailSend emailSend, Contact recipient, DBObject target, DBObject globals, DBEmailRecipient[] allRecipientList, boolean isParseRecipient, boolean isHtml, boolean isValidating) throws java.lang.Exception
java.lang.Exception
protected java.lang.String parseRestPath(DBEmailSend emailSend, JSONObject json, java.lang.String token, boolean isHtml) throws java.lang.Exception
java.lang.Exception
protected java.lang.String parseUnsubscribeLink(DBEmailSend emailSend, Contact recipient, java.lang.String text) throws java.lang.Exception
java.lang.Exception
protected java.lang.String parseInvitationLink(DBObject target, java.lang.String key, Contact recipient) throws java.lang.Exception
java.lang.Exception
protected java.lang.String parseExpressInterestLink(DBEmailSend emailSend, DBObject target, java.lang.String key, Contact recipient, java.lang.String text) throws java.lang.Exception
java.lang.Exception
protected java.lang.String parseGlobalsPath(DBEmailSend base, DBObject globals, java.lang.String parsingToken, java.lang.String pth, java.lang.String res, boolean isHtml) throws java.lang.Exception
base
- the base objectglobals
- parsingToken
- pth
- res
- isHtml
- java.lang.Exception
- Exception A serious problemprotected java.lang.String parseRecipientPath(DBEmailSend base, DBObject recipient, DBEmailRecipient[] allRecipientList, java.lang.String parsingToken, java.lang.String pth, java.lang.String res, boolean isHtml) throws java.lang.Exception
base
- the base objectrecipient
- allRecipientList
- the recipientsparsingToken
- pth
- res
- isHtml
- java.lang.Exception
- Exception A serious problemprotected java.lang.String parseTargetPath(DBEmailSend base, DBObject target, java.lang.String parsingToken, java.lang.String pth, java.lang.String res, boolean isHtml) throws java.lang.Exception
base
- the base objecttarget
- parsingToken
- pth
- res
- isHtml
- java.lang.Exception
- Exception A serious problemprotected java.lang.String parseBasePath(DBEmailSend base, java.lang.String parsingToken, java.lang.String pth, java.lang.String res, boolean isHtml) throws java.lang.Exception
base
- the base objectparsingToken
- pth
- res
- isHtml
- java.lang.Exception
- Exception A serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.