fr.paris.lutece.portal.service.template
Class DatabaseTemplateService

java.lang.Object
  extended by fr.paris.lutece.portal.service.template.DatabaseTemplateService

public class DatabaseTemplateService
extends java.lang.Object

This class provides methods to access templates stored in the database.


Constructor Summary
DatabaseTemplateService()
           
 
Method Summary
static java.lang.String getTemplateFromKey(java.lang.String strKey)
          Get a template in the database from its key
static void updateTemplate(java.lang.String strKey, java.lang.String strValue)
          Update a template in the database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseTemplateService

public DatabaseTemplateService()
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 template
strValue - The new value of the template


Copyright © 2012 Mairie de Paris. All Rights Reserved.