Class FreeMarkerWithLuceneExtensionsModelFactory

    • Constructor Detail

      • FreeMarkerWithLuceneExtensionsModelFactory

        public FreeMarkerWithLuceneExtensionsModelFactory()
        Default constructor.
    • Method Detail

      • setServiceRegistry

        public void setServiceRegistry​(ServiceRegistry serviceRegistry)
        Set the service registry
        Parameters:
        serviceRegistry - ServiceRegistry
      • getModel

        public Map<String,​Object> getModel()
        Get the non-contextual model. This defines:
        1. dates: date, today, yesterday, tomorrow
        2. functions: luceneDateRange, selectSingleNode
        Specified by:
        getModel in interface TemplateActionModelFactory
        Returns:
        - the model for the template engine.
      • getTemplateEngine

        public String getTemplateEngine()
        The name of the template engine for which this model applies. In this case, "freemarker".
        Specified by:
        getTemplateEngine in interface TemplateActionModelFactory
        Returns:
        - the template engine.