|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.service.template.AppTemplateService
public final class AppTemplateService
This Service is used to retreive HTML templates, stored as files in the WEB-INF/templates directory of the webapp, to build the user interface. It provides a cache feature to prevent from loading file each time it is asked.
Method Summary | |
---|---|
static fr.paris.lutece.util.html.HtmlTemplate |
getTemplate(String strTemplate)
Returns a reference on a template object (load the template or get it from the cache if present.) |
static fr.paris.lutece.util.html.HtmlTemplate |
getTemplate(String strTemplate,
Locale locale)
Returns a reference on a template object (load the template or get it from the cache if present.) |
static fr.paris.lutece.util.html.HtmlTemplate |
getTemplate(String strTemplate,
Locale locale,
Object model)
Returns a reference on a template object (load the template or get it from the cache if present.) |
static fr.paris.lutece.util.html.HtmlTemplate |
getTemplate(String strTemplate,
String strPath)
Returns a reference on a template object (load the template or get it from the cache if present.) |
static fr.paris.lutece.util.html.HtmlTemplate |
getTemplate(String strTemplate,
String strPath,
Locale locale,
Object model)
Returns a reference on a template object (load the template or get it from the cache if present.) |
static fr.paris.lutece.util.html.HtmlTemplate |
getTemplateFromStringFtl(String strFreemarkerTemplateData,
Locale locale,
Object model)
Deprecated. |
static void |
init(String strTemplatePath)
Initializes the service with the templates's path |
static void |
initAutoIncludes()
Initializes autoincludes for plugins. |
static void |
resetCache()
Reset the cache |
static void |
resetConfiguration()
Resets the configuration cache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void init(String strTemplatePath)
strTemplatePath
- The template pathpublic static void initAutoIncludes()
public static void resetCache()
public static void resetConfiguration()
public static fr.paris.lutece.util.html.HtmlTemplate getTemplate(String strTemplate)
strTemplate
- The name of the template
public static fr.paris.lutece.util.html.HtmlTemplate getTemplate(String strTemplate, String strPath)
strTemplate
- The name of the templatestrPath
- The specific path to load the template
public static fr.paris.lutece.util.html.HtmlTemplate getTemplate(String strTemplate, Locale locale)
strTemplate
- The name of the templatelocale
- The current locale to localize the template
public static fr.paris.lutece.util.html.HtmlTemplate getTemplate(String strTemplate, Locale locale, Object model)
strTemplate
- The name of the templatelocale
- The current locale to localize the templatemodel
- the model to use for loading
public static fr.paris.lutece.util.html.HtmlTemplate getTemplate(String strTemplate, String strPath, Locale locale, Object model)
strTemplate
- The name of the templatestrPath
- The specific path to load the templatelocale
- The current locale to localize the templatemodel
- the model to use for loading
@Deprecated public static fr.paris.lutece.util.html.HtmlTemplate getTemplateFromStringFtl(String strFreemarkerTemplateData, Locale locale, Object model)
strFreemarkerTemplateData
- The content of the templatelocale
- The current Locale
to localize the templatemodel
- The model
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |