Class GenerateCalendarUrlMethod

java.lang.Object
ch.tocco.nice2.optional.calendarexport.impl.freemarker.GenerateCalendarUrlMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class GenerateCalendarUrlMethod extends Object implements freemarker.template.TemplateMethodModelEx
method to generate a calendar export url usage: ${generateCalendarUrl(calendarExportConf)} ← uses the installation base url ${generateCalendarUrl(calendarExportConf, "http://test-url.com")} ← uses the 2nd parameter as base url
  • Constructor Details

    • GenerateCalendarUrlMethod

      public GenerateCalendarUrlMethod()
  • Method Details

    • exec

      public Object exec(List params)
      Specified by:
      exec in interface freemarker.template.TemplateMethodModel
      Specified by:
      exec in interface freemarker.template.TemplateMethodModelEx
    • setPath

      @Value("${calendarexport.exportUrlPath}") public void setPath(String path)