Interface TemplateActionModelFactory
-
- All Known Implementing Classes:
FreeMarkerWithLuceneExtensionsModelFactory
public interface TemplateActionModelFactoryA factory that builds models to use with a particular template engine for use with scheduled actions built from action templates.- Author:
- Andy Hind
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getModel()Build a model with no default node context.java.util.Map<java.lang.String,java.lang.Object>getModel(org.alfresco.service.cmr.repository.NodeRef nodeRef)Build a model with a default node context.java.lang.StringgetTemplateEngine()Get the name of the template engine for which this factory applies
-
-
-
Method Detail
-
getTemplateEngine
java.lang.String getTemplateEngine()
Get the name of the template engine for which this factory applies- Returns:
- - the template engine.
-
getModel
java.util.Map<java.lang.String,java.lang.Object> getModel()
Build a model with no default node context.- Returns:
- - the model for the template engine.
-
getModel
java.util.Map<java.lang.String,java.lang.Object> getModel(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Build a model with a default node context.- Parameters:
nodeRef- NodeRef- Returns:
- - the model (with nodeRef as its context).
-
-