public class TemplateProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_CONFIG_CACHE_REFRESH_INTERVAL |
static String |
DEFAULT_SUBJECT_SUFFIX |
| Constructor and Description |
|---|
TemplateProcessor(ProcessToolTemplateLoader templateLoader) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCacheRefreshInterval() |
String |
getSubjectSuffix() |
void |
processEmail(String templateName,
Map dataModel,
String recipient,
Properties mailProperties,
boolean sendHtml) |
String |
processTemplate(String templateName,
Map dataModel) |
void |
refreshTemplates() |
void |
sendEmail(String rcpt,
String from,
String subject,
String body,
boolean sendHtml,
javax.mail.Session mailSession) |
void |
setCacheRefreshInterval(long cacheRefreshInterval) |
void |
setSubjectSuffix(String subjectSuffix) |
public static final String DEFAULT_SUBJECT_SUFFIX
public static final long DEFAULT_CONFIG_CACHE_REFRESH_INTERVAL
public TemplateProcessor(ProcessToolTemplateLoader templateLoader)
public void processEmail(String templateName, Map dataModel, String recipient, Properties mailProperties, boolean sendHtml) throws IOException, freemarker.template.TemplateException, javax.mail.MessagingException
IOExceptionfreemarker.template.TemplateExceptionjavax.mail.MessagingExceptionpublic void sendEmail(String rcpt, String from, String subject, String body, boolean sendHtml, javax.mail.Session mailSession) throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic String processTemplate(String templateName, Map dataModel) throws IOException, freemarker.template.TemplateException
IOExceptionfreemarker.template.TemplateExceptionpublic void refreshTemplates()
public String getSubjectSuffix()
public void setSubjectSuffix(String subjectSuffix)
public long getCacheRefreshInterval()
public void setCacheRefreshInterval(long cacheRefreshInterval)
Copyright © 2013. All Rights Reserved.