|
||||||||||
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 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 HtmlTemplate |
getTemplate(java.lang.String strTemplate)
Returns a reference on a template object (load the template or get it from the cache if present.) |
static HtmlTemplate |
getTemplate(java.lang.String strTemplate,
java.util.Locale locale)
Returns a reference on a template object (load the template or get it from the cache if present.) |
static HtmlTemplate |
getTemplate(java.lang.String strTemplate,
java.util.Locale locale,
java.lang.Object model)
Returns a reference on a template object (load the template or get it from the cache if present.) |
static HtmlTemplate |
getTemplate(java.lang.String strTemplate,
java.lang.String strPath)
Returns a reference on a template object (load the template or get it from the cache if present.) |
static HtmlTemplate |
getTemplate(java.lang.String strTemplate,
java.lang.String strPath,
java.util.Locale locale,
java.lang.Object model)
Returns a reference on a template object (load the template or get it from the cache if present.) |
static void |
init(java.lang.String strTemplatePath)
Initializes the service with the templates's path |
static void |
resetCache()
Reset the 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(java.lang.String strTemplatePath)
strTemplatePath
- The template pathpublic static void resetCache()
public static HtmlTemplate getTemplate(java.lang.String strTemplate)
strTemplate
- The name of the template
public static HtmlTemplate getTemplate(java.lang.String strTemplate, java.lang.String strPath)
strTemplate
- The name of the templatestrPath
- The specific path to load the template
public static HtmlTemplate getTemplate(java.lang.String strTemplate, java.util.Locale locale)
strTemplate
- The name of the templatelocale
- The current locale to localize the template
public static HtmlTemplate getTemplate(java.lang.String strTemplate, java.util.Locale locale, java.lang.Object model)
strTemplate
- The name of the templatelocale
- The current locale to localize the templatemodel
- the model to use for loading
public static HtmlTemplate getTemplate(java.lang.String strTemplate, java.lang.String strPath, java.util.Locale locale, java.lang.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |