Class AbstractSalutationFormDirective

java.lang.Object
ch.tocco.nice2.optional.address.impl.AbstractSalutationFormDirective
All Implemented Interfaces:
Nice2TemplateDirective, TemplateIdentifiers, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel
Direct Known Subclasses:
AbstractSalutationFormDirective.CasualFormDirective, AbstractSalutationFormDirective.PoliteFormDirective

public abstract class AbstractSalutationFormDirective extends Object implements Nice2TemplateDirective, TemplateIdentifiers
  • Field Details

  • Constructor Details

    • AbstractSalutationFormDirective

      public AbstractSalutationFormDirective(AddressService addressService)
  • Method Details

    • execute

      public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException
      Specified by:
      execute in interface freemarker.template.TemplateDirectiveModel
      Throws:
      freemarker.template.TemplateException
      IOException
    • doRenderBody

      protected abstract boolean doRenderBody(@Nullable @Nullable Entity sender, Entity recipient)