@PermitAll public class TemplateServiceImpl extends Object implements TemplateService
| Constructor and Description |
|---|
TemplateServiceImpl() |
TemplateServiceImpl(String overrideDirectory,
String configurationDirectory) |
| Modifier and Type | Method and Description |
|---|---|
String |
getProcessedTemplate(String templateName,
Locale locale,
Map<String,Object> properties)
Merges the given template name with the properties.
|
public String getProcessedTemplate(String templateName, Locale locale, Map<String,Object> properties) throws IOException, freemarker.template.TemplateException
TemplateServicegetProcessedTemplate in interface TemplateServicetemplateName - the template name, such as 'invitation_plain.ftl'.locale - the locale for the template, such as Locale.USproperties - the properties to merge the template withIOExceptionfreemarker.template.TemplateExceptionCopyright © 2014–2016 Red Hat, Inc.. All rights reserved.