Interface TemplateActionModelFactory

All Known Implementing Classes:
FreeMarkerWithLuceneExtensionsModelFactory

public interface TemplateActionModelFactory
A factory that builds models to use with a particular template engine for use with scheduled actions built from action templates.
Author:
Andy Hind
  • Method Details

    • getTemplateEngine

      String getTemplateEngine()
      Get the name of the template engine for which this factory applies
      Returns:
      - the template engine.
    • getModel

      Map<String,Object> getModel()
      Build a model with no default node context.
      Returns:
      - the model for the template engine.
    • getModel

      Map<String,Object> getModel(NodeRef nodeRef)
      Build a model with a default node context.
      Parameters:
      nodeRef - NodeRef
      Returns:
      - the model (with nodeRef as its context).