public class FreemarkerRenderingEngine extends BaseTemplateRenderingEngine
AbstractRenderingEngine.RenderingContext
Modifier and Type | Field and Description |
---|---|
static String |
KEY_NODE
The name of the source node as it appears in the model supplied to the freemarker template
|
static String |
NAME |
PARAM_MODEL, PARAM_TEMPLATE, PARAM_TEMPLATE_NODE, PARAM_TEMPLATE_PATH
actionTrackingService, CONTENT_READER_NOT_FOUND_MESSAGE, contentService, DEFAULT_RUN_AS_NAME, mimetypeMap, nodeService, PARAM_ENCODING, PARAM_MIME_TYPE, PARAM_PLACEHOLDER_RESOURCE_PATH, PARAM_RUN_AS, PARAM_SOURCE_CONTENT_PROPERTY, PARAM_TARGET_CONTENT_PROPERTY, PARAM_UPDATE_RENDITIONS_ON_ANY_PROPERTY_CHANGE
actionDefinition, applicableTypes, publicAction
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionService
name
PARAM_RESULT
Constructor and Description |
---|
FreemarkerRenderingEngine() |
Modifier and Type | Method and Description |
---|---|
protected Object |
buildModel(AbstractRenderingEngine.RenderingContext context)
Create the model that will be passed to the template service for rendering
with the appropriate template.
|
protected Collection<ParameterDefinition> |
getParameterDefinitions()
Supplies the list of parameters required by this rendering engine.
|
protected String |
getTemplateType()
Get the type of template that is to be used.
|
void |
setRepositoryHelper(Repository repository) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
getParamDisplayLabel, getSearchService, getTemplateNode, getTemplateService, render, setSearchService, setTemplateService
addParameterDefinitions, checkActionIsRenditionDefinition, checkParameterValues, checkSourceNodeExists, createActionDefinition, executeImpl, executeImpl, executeRenditionImpl, getCheckedParam, getDefaultRenditionContentProp, getDefaultRenditionNodeType, getExecutionSummary, getParamWithDefault, getRenditionContentProperty, getTargetEncoding, getTargetMimeType, notifyCallbackOfException, notifyCallbackOfResult, resolveRenditionLocation, setActionTrackingService, setBehaviourFilter, setContentService, setDefaultRenditionContentProp, setDefaultRenditionNodeType, setMimetypeMap, setNodeService, setRenditionLocationResolver, setRenditionService, switchToFinalRenditionNode, tagSourceNodeAsRenditioned, throwWrappedException
execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, onLogException, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toString
setBeanName
public static final String NAME
public static final String KEY_NODE
protected Collection<ParameterDefinition> getParameterDefinitions()
AbstractRenderingEngine
getParameterDefinitions
in class BaseTemplateRenderingEngine
protected Object buildModel(AbstractRenderingEngine.RenderingContext context)
BaseTemplateRenderingEngine
buildModel
in class BaseTemplateRenderingEngine
context
- The context of the rendering requestprotected String getTemplateType()
BaseTemplateRenderingEngine
getTemplateType
in class BaseTemplateRenderingEngine
public void setRepositoryHelper(Repository repository)
repository
- the repository to setpublic void setServiceRegistry(ServiceRegistry serviceRegistry)
serviceRegistry
- the serviceRegistry to setCopyright © 2005–2017 Alfresco Software. All rights reserved.