Class DatabaseTemplateService
- java.lang.Object
-
- fr.paris.lutece.portal.service.template.DatabaseTemplateService
-
public final class DatabaseTemplateService extends java.lang.ObjectThis class provides methods to access templates stored in the database.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetTemplateFromKey(java.lang.String strKey)Get a template in the database from its keystatic voidupdateTemplate(java.lang.String strKey, java.lang.String strValue)Update a template in the database
-
-
-
Method Detail
-
getTemplateFromKey
public static java.lang.String getTemplateFromKey(java.lang.String strKey)
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
-
updateTemplate
public static void updateTemplate(java.lang.String strKey, java.lang.String strValue)Update a template in the database- Parameters:
strKey- The key of the templatestrValue- The new value of the template
-
-