Class LoadCurrentUserDirective

java.lang.Object
ch.tocco.nice2.usermanager.impl.templating.LoadCurrentUserDirective
All Implemented Interfaces:
Nice2TemplateDirective, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

public class LoadCurrentUserDirective extends Object implements Nice2TemplateDirective
Template Directive to load the current user
  • Constructor Details

    • LoadCurrentUserDirective

      public LoadCurrentUserDirective(PrincipalService principalService)
  • 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