Class DatabaseTemplateService
java.lang.Object
fr.paris.lutece.portal.service.template.DatabaseTemplateService
This class provides methods to access templates stored in the database.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTemplateFromKey(String strKey) Get a template in the database from its keystatic StringgetTemplateFromKey(String strKey, boolean bForEditor) Get a template in the database from its keystatic voidupdateTemplate(String strKey, String strValue) Update a template in the database
-
Method Details
-
getTemplateFromKey
Get a template in the database from its key- Parameters:
strKey- The key of the template to get- Returns:
- The template loaded from the database
-
getTemplateFromKey
Get a template in the database from its key- Parameters:
strKey- The key of the template to getbForEditor- True if the template is to be displayed in an editor- Returns:
- The template loaded from the database
-
updateTemplate
Update a template in the database- Parameters:
strKey- The key of the templatestrValue- The new value of the template
-