|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.service.template.AbstractFreeMarkerTemplateService
public abstract class AbstractFreeMarkerTemplateService
Template service based on the Freemarker template engine
Constructor Summary | |
---|---|
AbstractFreeMarkerTemplateService()
|
Method Summary | |
---|---|
void |
addPluginMacros(java.lang.String strFileName)
Adds a macro file (like the main commons.html) brought by a plugin. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.paris.lutece.portal.service.template.IFreeMarkerTemplateService |
---|
getAbsolutePathFromRelativePath, getDefaultPattern |
Constructor Detail |
---|
public AbstractFreeMarkerTemplateService()
Method Detail |
---|
public void setTemplateUpdateDelay(int nTemplateUpdateDelay)
setTemplateUpdateDelay
in interface IFreeMarkerTemplateService
nTemplateUpdateDelay
- the template update delaypublic void addPluginMacros(java.lang.String strFileName)
addPluginMacros
in interface IFreeMarkerTemplateService
strFileName
- the filenamepublic void init(java.lang.String strTemplatePath)
init
in interface IFreeMarkerTemplateService
strTemplatePath
- The template pathpublic HtmlTemplate loadTemplate(java.lang.String strPath, java.lang.String strTemplate)
loadTemplate
in interface IFreeMarkerTemplateService
strPath
- the root pathstrTemplate
- the path of the template from the root path
public HtmlTemplate loadTemplate(java.lang.String strPath, java.lang.String strTemplate, java.util.Locale locale, java.lang.Object rootMap)
loadTemplate
in interface IFreeMarkerTemplateService
strPath
- the root pathstrTemplate
- the path of the template from the root pathlocale
- The localerootMap
- the model root
@Deprecated public HtmlTemplate loadTemplate(java.lang.String strTemplateData, java.util.Locale locale, java.lang.Object rootMap)
loadTemplate
in interface IFreeMarkerTemplateService
strTemplateData
- The template as a stringlocale
- The Locale
rootMap
- the model root
public void resetConfiguration()
resetConfiguration
in interface IFreeMarkerTemplateService
public void resetCache()
resetCache
in interface IFreeMarkerTemplateService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |