public class MailTemplateProvider extends Object implements IMailTemplateLoader
| Constructor and Description |
|---|
MailTemplateProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeTemplateSource(Object templateSource) |
String |
findTemplate(String templateName)
Find tempalte by name
|
Object |
findTemplateSource(String templateName) |
BpmNotificationTemplate |
getBpmNotificationTemplate(String templateName)
Get the bpm notification template
|
long |
getLastModified(Object templateSource) |
Reader |
getReader(Object templateSource,
String encoding) |
String |
processTemplate(String templateName,
TemplateData templateData)
Inject variables values to template
|
void |
refreshConfig()
Refresh config: look for modifictations of templates in database
|
public void refreshConfig()
refreshConfig in interface IMailTemplateLoaderpublic String findTemplate(String templateName)
IMailTemplateLoaderfindTemplate in interface IMailTemplateLoaderpublic BpmNotificationTemplate getBpmNotificationTemplate(String templateName)
IMailTemplateLoadergetBpmNotificationTemplate in interface IMailTemplateLoaderpublic String processTemplate(String templateName, TemplateData templateData) throws ProcessToolTemplateErrorException
IMailTemplateLoaderprocessTemplate in interface IMailTemplateLoaderProcessToolTemplateErrorExceptionpublic Object findTemplateSource(String templateName) throws IOException
findTemplateSource in interface freemarker.cache.TemplateLoaderIOExceptionpublic long getLastModified(Object templateSource)
getLastModified in interface freemarker.cache.TemplateLoaderpublic Reader getReader(Object templateSource, String encoding) throws IOException
getReader in interface freemarker.cache.TemplateLoaderIOExceptionpublic void closeTemplateSource(Object templateSource) throws IOException
closeTemplateSource in interface freemarker.cache.TemplateLoaderIOExceptionCopyright © 2013. All Rights Reserved.