Class FreemarkerRenderingEngine
- java.lang.Object
-
- org.alfresco.repo.action.CommonResourceAbstractBase
-
- org.alfresco.repo.action.ParameterizedItemAbstractBase
-
- org.alfresco.repo.action.executer.ActionExecuterAbstractBase
-
- org.alfresco.repo.rendition.executer.AbstractRenderingEngine
-
- org.alfresco.repo.rendition.executer.BaseTemplateRenderingEngine
-
- org.alfresco.repo.rendition.executer.FreemarkerRenderingEngine
-
- All Implemented Interfaces:
ActionExecuter,LoggingAwareExecuter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
@Deprecated public class FreemarkerRenderingEngine extends BaseTemplateRenderingEngine
Deprecated.The RenditionService is being replace by the simpler async RenditionService2.- Since:
- 3.3
- Author:
- Nick Smith
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.alfresco.repo.rendition.executer.AbstractRenderingEngine
AbstractRenderingEngine.RenderingContext
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringKEY_NODEDeprecated.The name of the source node as it appears in the model supplied to the freemarker templatestatic java.lang.StringNAMEDeprecated.-
Fields inherited from class org.alfresco.repo.rendition.executer.BaseTemplateRenderingEngine
PARAM_MODEL, PARAM_TEMPLATE, PARAM_TEMPLATE_NODE, PARAM_TEMPLATE_PATH
-
Fields inherited from class org.alfresco.repo.rendition.executer.AbstractRenderingEngine
actionTrackingService, 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_CHANGE
-
Fields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
actionDefinition, applicableTypes, publicAction
-
Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionService
-
Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
name
-
Fields inherited from interface org.alfresco.repo.action.executer.ActionExecuter
PARAM_RESULT
-
-
Constructor Summary
Constructors Constructor Description FreemarkerRenderingEngine()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.ObjectbuildModel(AbstractRenderingEngine.RenderingContext context)Deprecated.Create the model that will be passed to the template service for rendering with the appropriate template.protected java.util.Collection<ParameterDefinition>getParameterDefinitions()Deprecated.Supplies the list of parameters required by this rendering engine.protected java.lang.StringgetTemplateType()Deprecated.Get the type of template that is to be used.voidsetRepositoryHelper(Repository repository)Deprecated.voidsetServiceRegistry(ServiceRegistry serviceRegistry)Deprecated.-
Methods inherited from class org.alfresco.repo.rendition.executer.BaseTemplateRenderingEngine
getParamDisplayLabel, getSearchService, getTemplateNode, getTemplateService, render, setSearchService, setTemplateService
-
Methods inherited from class org.alfresco.repo.rendition.executer.AbstractRenderingEngine
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, setNamespaceService, setNodeService, setRenditionLocationResolver, setRenditionService, switchToFinalRenditionNode, tagSourceNodeAsRenditioned, throwWrappedException
-
Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, onLogException, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus
-
Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toString
-
Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanName
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
Deprecated.- See Also:
- Constant Field Values
-
KEY_NODE
public static final java.lang.String KEY_NODE
Deprecated.The name of the source node as it appears in the model supplied to the freemarker template- See Also:
- Constant Field Values
-
-
Method Detail
-
getParameterDefinitions
protected java.util.Collection<ParameterDefinition> getParameterDefinitions()
Deprecated.Description copied from class:AbstractRenderingEngineSupplies the list of parameters required by this rendering engine.- Overrides:
getParameterDefinitionsin classBaseTemplateRenderingEngine
-
buildModel
protected java.lang.Object buildModel(AbstractRenderingEngine.RenderingContext context)
Deprecated.Description copied from class:BaseTemplateRenderingEngineCreate the model that will be passed to the template service for rendering with the appropriate template.- Specified by:
buildModelin classBaseTemplateRenderingEngine- Parameters:
context- The context of the rendering request- Returns:
- The model that is to be passed to the template service
-
getTemplateType
protected java.lang.String getTemplateType()
Deprecated.Description copied from class:BaseTemplateRenderingEngineGet the type of template that is to be used. This identifies the name of the template processor that should be used, such as "freemarker" or "xslt".- Specified by:
getTemplateTypein classBaseTemplateRenderingEngine- Returns:
- String
-
setRepositoryHelper
public void setRepositoryHelper(Repository repository)
Deprecated.- Parameters:
repository- the repository to set
-
setServiceRegistry
public void setServiceRegistry(ServiceRegistry serviceRegistry)
Deprecated.- Parameters:
serviceRegistry- the serviceRegistry to set
-
-