Class Templates

java.lang.Object
com.vdoc.sdk.commons.freemarker.Templates

@Deprecated public class Templates extends Object
Deprecated.
Templates
Author:
vmartinon
See Also:
  • Constructor Details

    • Templates

      public Templates()
      Deprecated.
  • Method Details

    • getTemplateContent

      public static String getTemplateContent(String relativePath, String template, Map<String,Object> parameters) throws IOException, freemarker.template.TemplateException
      Deprecated.
      Get template content
      Parameters:
      relativePath - relative folder path (relative to /vdoc.ear/vdoc.war/)
      template - the .flt file name
      parameters - all template input param
      Returns:
      the template content
      Throws:
      IOException - on error
      freemarker.template.TemplateException - on error
    • getTemplateContent

      public static String getTemplateContent(String relativePath, String template, Collection<freemarker.template.ObjectWrapper> objectWrappers, Map<String,Object> parameters) throws IOException, freemarker.template.TemplateException
      Deprecated.
      Get template content
      Parameters:
      relativePath - relative folder path (relative to /vdoc.ear/vdoc.war/)
      template - the .flt file name
      objectWrappers - the object wrappers
      parameters - all template input param
      Returns:
      the template content
      Throws:
      IOException - on error
      freemarker.template.TemplateException - on error