|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFreeMarkerTemplateService
IFreeMarkerTemplateService
Method Summary | |
---|---|
void |
addPluginMacros(java.lang.String strFileName)
Adds a macro file (like the main commons.html) brought by a plugin. |
java.lang.String |
getAbsolutePathFromRelativePath(java.lang.String strPath)
Get the absolute path from relative path |
java.lang.String |
getDefaultPattern(java.util.Locale locale)
Get the default date pattern |
void |
init(java.lang.String strTemplatePath)
Initializes the service with the templates's path |
HtmlTemplate |
loadTemplate(java.lang.String strTemplateData,
java.util.Locale locale,
java.lang.Object rootMap)
Deprecated. |
HtmlTemplate |
loadTemplate(java.lang.String strPath,
java.lang.String strTemplate)
Load a template |
HtmlTemplate |
loadTemplate(java.lang.String strPath,
java.lang.String strTemplate,
java.util.Locale locale,
java.lang.Object rootMap)
Load a template and process a model |
void |
resetCache()
Reset the cache |
void |
resetConfiguration()
Clears the configuration cache |
void |
setTemplateUpdateDelay(int nTemplateUpdateDelay)
Set the template update delay |
Method Detail |
---|
java.lang.String getAbsolutePathFromRelativePath(java.lang.String strPath)
strPath
- the path
java.lang.String getDefaultPattern(java.util.Locale locale)
locale
- the locale
void setTemplateUpdateDelay(int nTemplateUpdateDelay)
nTemplateUpdateDelay
- the template update delayvoid addPluginMacros(java.lang.String strFileName)
strFileName
- the filenamevoid init(java.lang.String strTemplatePath)
strTemplatePath
- The template pathHtmlTemplate loadTemplate(java.lang.String strPath, java.lang.String strTemplate)
strPath
- the root pathstrTemplate
- the path of the template from the root path
HtmlTemplate loadTemplate(java.lang.String strPath, java.lang.String strTemplate, java.util.Locale locale, java.lang.Object rootMap)
strPath
- the root pathstrTemplate
- the path of the template from the root pathlocale
- The localerootMap
- the model root
@Deprecated HtmlTemplate loadTemplate(java.lang.String strTemplateData, java.util.Locale locale, java.lang.Object rootMap)
strTemplateData
- The template as a stringlocale
- The Locale
rootMap
- the model root
void resetConfiguration()
void resetCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |