public class FreemarkerRenderingEngine extends BaseTemplateRenderingEngine
AbstractRenderingEngine.RenderingContext| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_NODE
The name of the source node as it appears in the model supplied to the freemarker template
|
static java.lang.String |
NAME |
PARAM_MODEL, PARAM_TEMPLATE, PARAM_TEMPLATE_NODE, PARAM_TEMPLATE_PATHCONTENT_READER_NOT_FOUND_MESSAGE, contentService, 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_CHANGEactionDefinition, applicableTypes, publicActionDISPLAY_LABEL, runtimeActionServicenamePARAM_RESULT| Constructor and Description |
|---|
FreemarkerRenderingEngine() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
buildModel(AbstractRenderingEngine.RenderingContext context)
Create the model that will be passed to the template service for rendering
with the appropriate template.
|
protected java.util.Collection |
getParameterDefinitions()
Supplies the list of parameters required by this rendering engine.
|
protected java.lang.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, getParamWithDefault, getRenditionContentProperty, getTargetEncoding, getTargetMimeType, notifyCallbackOfException, notifyCallbackOfResult, resolveRenditionLocation, setBehaviourFilter, setContentService, setDefaultRenditionContentProp, setDefaultRenditionNodeType, setMimetypeMap, setNodeService, setRenditionLocationResolver, setRenditionService, switchToFinalRenditionNode, tagSourceNodeAsRenditioned, throwWrappedExceptionexecute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setPublicAction, setQueueName, setTrackStatuscheckMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getParameterDefintions, getTitleKey, setRuntimeActionService, toStringsetBeanNamepublic static final java.lang.String NAME
public static final java.lang.String KEY_NODE
protected java.util.Collection getParameterDefinitions()
AbstractRenderingEnginegetParameterDefinitions in class BaseTemplateRenderingEngineprotected java.lang.Object buildModel(AbstractRenderingEngine.RenderingContext context)
BaseTemplateRenderingEnginebuildModel in class BaseTemplateRenderingEnginecontext - The context of the rendering requestprotected java.lang.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 - 2010 Alfresco Software, Inc. All Rights Reserved.