Class BaseTemplateRenderingEngine
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
- All Implemented Interfaces:
ActionExecuter,LoggingAwareExecuter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
- Direct Known Subclasses:
FreemarkerRenderingEngine,XSLTRenderingEngine
Deprecated.
The RenditionService is being replace by the simpler async RenditionService2.
This abstract class forms a basis for all rendering engines that are built around the Template Service.
A template must be specified either as a
A template must be specified either as a
String using the PARAM_TEMPLATE parameter, as a NodeRef using the PARAM_TEMPLATE_NODE parameter or as a file path location using the PARAM_TEMPLATE_PATH parameter. The RenderingEngine reads from these parameters with the following priority: PARAM_TEMPLATE > PARAM_TEMPLATE_NODE > PARAM_TEMPLATE_PATH.- Since:
- 3.3
- Author:
- Brian Remmington
-
Nested Class Summary
Nested classes/interfaces inherited from class org.alfresco.repo.rendition.executer.AbstractRenderingEngine
AbstractRenderingEngine.RenderingContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.This optionalMap<String,Serializable> parameter can be used to pass additional arguments to the templating engine when processing a template.static final StringDeprecated.static final StringDeprecated.This optionalNodeRefparameter specifies a node containing the template to be processed.
If a value is specified for PARAM_TEMPLATE then this parameter will be ignored.
If a value is specified for this parameter it will be used in preference to values specified for the PARAM_TEMPLATE_PATH parameter.static final StringDeprecated.This optionalStringparameter specifies a file path location for the template to be processed.
If a value is specified for PARAM_TEMPLATE or PARAM_TEMPLATE_NODE then this parameter will be ignored.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_CHANGEFields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
actionAccessRestrictions, actionDefinition, applicableTypes, publicActionFields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionServiceFields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
nameFields inherited from interface org.alfresco.repo.action.executer.ActionExecuter
PARAM_RESULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectDeprecated.Create the model that will be passed to the template service for rendering with the appropriate template.protected StringgetParamDisplayLabel(String paramName) Deprecated.This method gets the parameter definition display label from the properties file.protected Collection<ParameterDefinition>Deprecated.Supplies the list of parameters required by this rendering engine.Deprecated.protected NodeRefDeprecated.Deprecated.protected abstract StringDeprecated.Get the type of template that is to be used.protected voidDeprecated.voidsetSearchService(SearchService searchService) Deprecated.voidsetTemplateService(TemplateService templateService) Deprecated.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, throwWrappedExceptionMethods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase
execute, getActionAccessRestrictions, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, onLogException, setActionAccessRestrictions, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus, verifyActionAccessRestrictionsMethods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toStringMethods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase
setBeanNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.alfresco.repo.action.executer.ActionExecuter
isExecuteAsynchronously
-
Field Details
-
PARAM_MODEL
Deprecated.This optionalMap<String,Serializable> parameter can be used to pass additional arguments to the templating engine when processing a template.- See Also:
-
PARAM_TEMPLATE
Deprecated.This optionalStringparameter specifies the template in a simpleStringformat.
If this parameter is set the Rendering Engine will use it in preference to templates specified by either the PARAM_TEMPLATE_NODE or the PARAM_TEMPLATE_PATH parameters.- See Also:
-
PARAM_TEMPLATE_NODE
Deprecated.This optionalNodeRefparameter specifies a node containing the template to be processed.
If a value is specified for PARAM_TEMPLATE then this parameter will be ignored.
If a value is specified for this parameter it will be used in preference to values specified for the PARAM_TEMPLATE_PATH parameter.- See Also:
-
PARAM_TEMPLATE_PATH
Deprecated.This optionalStringparameter specifies a file path location for the template to be processed.
If a value is specified for PARAM_TEMPLATE or PARAM_TEMPLATE_NODE then this parameter will be ignored.- See Also:
-
-
Constructor Details
-
BaseTemplateRenderingEngine
public BaseTemplateRenderingEngine()Deprecated.
-
-
Method Details
-
render
Deprecated.- Specified by:
renderin classAbstractRenderingEngine
-
getTemplateNode
Deprecated. -
buildModel
Deprecated.Create the model that will be passed to the template service for rendering with the appropriate template.- Parameters:
context- The context of the rendering request- Returns:
- The model that is to be passed to the template service
-
getTemplateType
Deprecated.Get 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".- Returns:
- String
-
getParamDisplayLabel
Deprecated.This method gets the parameter definition display label from the properties file. It looks first for a property whose key has a fixed rendition service-specific prefix and if that gets null, it then delegates to the standard bean name-based approach.- Overrides:
getParamDisplayLabelin classAbstractRenderingEngine- Parameters:
paramName- the name of the parameter- Returns:
- the display label of the parameter
-
getParameterDefinitions
Deprecated.Description copied from class:AbstractRenderingEngineSupplies the list of parameters required by this rendering engine.- Overrides:
getParameterDefinitionsin classAbstractRenderingEngine
-
setTemplateService
Deprecated.- Parameters:
templateService- the templateService to set
-
setSearchService
Deprecated.- Parameters:
searchService- the searchService to set
-
getTemplateService
Deprecated. -
getSearchService
Deprecated.
-