Class DatabaseTemplateService

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

public final class DatabaseTemplateService extends Object
This class provides methods to access templates stored in the database.
  • Method Details

    • getTemplateFromKey

      public static String getTemplateFromKey(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
    • getTemplateFromKey

      public static String getTemplateFromKey(String strKey, boolean bForEditor)
      Get a template in the database from its key
      Parameters:
      strKey - The key of the template to get
      bForEditor - True if the template is to be displayed in an editor
      Returns:
      The template loaded from the database
    • updateTemplate

      public static void updateTemplate(String strKey, String strValue)
      Update a template in the database
      Parameters:
      strKey - The key of the template
      strValue - The new value of the template