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_PATHactionTrackingService, CONTENT_READER_NOT_FOUND_MESSAGE, contentService, DEFAULT_RUN_AS_NAME, mimetypeMap, namespaceService, 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_CHANGEactionDefinition, applicableTypes, publicActionadhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionServicenamePARAM_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, setTemplateServiceaddParameterDefinitions, checkActionIsRenditionDefinition, checkParameterValues, checkSourceNodeExists, createActionDefinition, executeImpl, executeImpl, executeRenditionImpl, getCheckedParam, getDefaultRenditionContentProp, getDefaultRenditionNodeType, getExecutionSummary, getParamWithDefault, getRenditionContentProperty, getTargetEncoding, getTargetMimeType, notifyCallbackOfException, notifyCallbackOfResult, resolveRenditionLocation, setActionTrackingService, setBehaviourFilter, setContentService, setDefaultRenditionContentProp, setDefaultRenditionNodeType, setMimetypeMap, setNamespaceService, setNodeService, setRenditionLocationResolver, setRenditionService, switchToFinalRenditionNode, tagSourceNodeAsRenditioned, throwWrappedExceptionexecute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, onLogException, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatuscheckMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toStringsetBeanNamepublic static final String NAME
public static final String KEY_NODE
protected Collection<ParameterDefinition> getParameterDefinitions()
AbstractRenderingEnginegetParameterDefinitions in class BaseTemplateRenderingEngineprotected Object buildModel(AbstractRenderingEngine.RenderingContext context)
BaseTemplateRenderingEnginebuildModel in class BaseTemplateRenderingEnginecontext - The context of the rendering requestprotected String getTemplateType()
BaseTemplateRenderingEnginegetTemplateType in class BaseTemplateRenderingEnginepublic void setRepositoryHelper(Repository repository)
repository - the repository to setpublic void setServiceRegistry(ServiceRegistry serviceRegistry)
serviceRegistry - the serviceRegistry to setCopyright © 2005–2018 Alfresco Software. All rights reserved.