Class AbstractRenderingEngine
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
- All Implemented Interfaces:
ActionExecuter,LoggingAwareExecuter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
- Direct Known Subclasses:
AbstractTransformationRenderingEngine,BaseTemplateRenderingEngine,CompositeRenderingEngine
Deprecated.
The RenditionService is being replace by the simpler async RenditionService2.
This class adds some new behaviour to the standard ActionExecuterAbstractBase in order to support the RenditionService.
- Since:
- 3.3
- Author:
- Neil McErlean, Nick Smith
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActionTrackingServiceDeprecated.protected static final StringDeprecated.protected ContentServiceDeprecated.protected static final StringDeprecated.protected MimetypeMapDeprecated.protected NamespaceServiceDeprecated.protected NodeServiceDeprecated.static final StringDeprecated.This optionalStringparamter specifies the encoding used to create the rendition content.static final StringDeprecated.This optionalStringparameter specifies the mime type of the rendition content.static final StringDeprecated.This optionalStringparameter specifies the location of a classpath resource which can be used as a placeholder while a rendition is being generated.static final StringDeprecated.This optionalStringparameter specifies what user permissions are used when creating a rendition.static final StringDeprecated.This optionalQNameparameter specifies which property the Rendering Engine uses to read content from the source node in order to create a rendition.static final StringDeprecated.This optionalQNameparameter specifies which property the Rendering Engine uses to write content to the rendition node.static final StringDeprecated.This optionalBooleanflag property specifies whether a rendition should be updated automatically if the source node changes.Fields 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
ConstructorsConstructorDescriptionDeprecated.AbstractRenderingEngine(NodeLocator temporaryParentNodeLocator, QName temporaryRenditionLinkType) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddParameterDefinitions(List<ParameterDefinition> paramList) Deprecated.Adds the parameter definitions to the listprotected RenditionDefinitionDeprecated.protected voidcheckParameterValues(Action action) Deprecated.This method can be overridden by subclasses to provide checking of parameter values.protected voidcheckSourceNodeExists(NodeRef actionedUponNodeRef) Deprecated.protected ActionDefinitioncreateActionDefinition(String definitionName) Deprecated.This method returns an instance of an ActionDefinition implementation class.protected voidexecuteImpl(Action action, NodeRef sourceNode) Deprecated.Execute the action implementationprotected voidexecuteImpl(RenditionDefinition renditionDef, NodeRef sourceNode) Deprecated.protected voidexecuteRenditionImpl(Action action, NodeRef sourceNode) Deprecated.static <T> TgetCheckedParam(String paramName, Class<T> clazz, RenditionDefinition definition) Deprecated.Gets the value for the named parameter.protected QNameDeprecated.This method returns the QName of the property that defines the location of the rendition content.protected QNameDeprecated.This method returns the type of the default rendition node type.protected ExecutionSummarygetExecutionSummary(AbstractRenderingEngine.RenderingContext renderingContext) Deprecated.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.static <T> TgetParamWithDefault(String paramName, T defaultValue, RenditionDefinition definition) Deprecated.Gets the value for the named parameter.protected QNamegetRenditionContentProperty(RenditionDefinition renditionDefinition) Deprecated.protected StringDeprecated.protected StringDeprecated.protected voidnotifyCallbackOfException(RenditionDefinition renditionDefinition, Throwable t) Deprecated.protected voidnotifyCallbackOfResult(RenditionDefinition renditionDefinition, ChildAssociationRef result) Deprecated.protected abstract voidDeprecated.protected RenditionLocationresolveRenditionLocation(NodeRef sourceNode, RenditionDefinition definition, NodeRef tempRendition) Deprecated.Given a rendition definition, a source node and a temporary rendition node, this method uses aRenditionLocationResolverto calculate theRenditionLocationof the rendition.voidsetActionTrackingService(ActionTrackingService actionTrackingService) Deprecated.voidsetBehaviourFilter(BehaviourFilter behaviourFilter) Deprecated.voidsetContentService(ContentService contentService) Deprecated.Set the content servicevoidDeprecated.Sets the default rendition content property.voidDeprecated.Sets the default rendition-node type.voidsetMimetypeMap(MimetypeMap mimetypeMap) Deprecated.voidsetNamespaceService(NamespaceService namespaceService) Deprecated.voidsetNodeService(NodeService nodeService) Deprecated.Injects the nodeService bean.voidsetRenditionLocationResolver(RenditionLocationResolver renditionLocationResolver) Deprecated.voidsetRenditionService(RenditionService renditionService) Deprecated.Injects the renditionService bean.protected voidswitchToFinalRenditionNode(RenditionDefinition renditionDef, NodeRef actionedUponNodeRef) Deprecated.protected voidtagSourceNodeAsRenditioned(RenditionDefinition renditionDef, NodeRef actionedUponNodeRef) Deprecated.protected voidDeprecated.Methods 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
-
CONTENT_READER_NOT_FOUND_MESSAGE
Deprecated.- See Also:
-
DEFAULT_RUN_AS_NAME
Deprecated. -
contentService
Deprecated. -
mimetypeMap
Deprecated. -
actionTrackingService
Deprecated. -
namespaceService
Deprecated. -
PARAM_PLACEHOLDER_RESOURCE_PATH
Deprecated.This optionalStringparameter specifies the location of a classpath resource which can be used as a placeholder while a rendition is being generated. For example, this might be a simple icon to indicate a rendition is not yet available. This is intended to be used in conjunction with asynchronous generation of renditions.- See Also:
-
PARAM_SOURCE_CONTENT_PROPERTY
Deprecated.This optionalQNameparameter specifies which property the Rendering Engine uses to read content from the source node in order to create a rendition. By default this property will be cm:content.- See Also:
-
PARAM_TARGET_CONTENT_PROPERTY
Deprecated.This optionalQNameparameter specifies which property the Rendering Engine uses to write content to the rendition node. By default the property used is cm:content.- See Also:
-
PARAM_UPDATE_RENDITIONS_ON_ANY_PROPERTY_CHANGE
Deprecated.This optionalBooleanflag property specifies whether a rendition should be updated automatically if the source node changes. If set totruethen the rendition will be re-rendered any time any property changes occur on the source node. This parameter defaults tofalse.- See Also:
-
PARAM_RUN_AS
Deprecated.This optionalStringparameter specifies what user permissions are used when creating a rendition. By default the system user is used.- See Also:
-
PARAM_MIME_TYPE
Deprecated.This optionalStringparameter specifies the mime type of the rendition content. This defaults to the mime type of the source node content.- See Also:
-
PARAM_ENCODING
Deprecated.This optionalStringparamter specifies the encoding used to create the rendition content. The derfault encoding is UTF-8.- See Also:
-
nodeService
Deprecated.
-
-
Constructor Details
-
AbstractRenderingEngine
public AbstractRenderingEngine(NodeLocator temporaryParentNodeLocator, QName temporaryRenditionLinkType) Deprecated. -
AbstractRenderingEngine
public AbstractRenderingEngine()Deprecated.
-
-
Method Details
-
setNodeService
Deprecated.Injects the nodeService bean.- Parameters:
nodeService- the nodeService.
-
setRenditionService
Deprecated.Injects the renditionService bean.- Parameters:
renditionService- RenditionService
-
setBehaviourFilter
Deprecated.- Parameters:
behaviourFilter- policy behaviour filter
-
setRenditionLocationResolver
Deprecated. -
setNamespaceService
Deprecated. -
setDefaultRenditionNodeType
Deprecated.Sets the default rendition-node type.- Parameters:
type- String
-
getDefaultRenditionNodeType
Deprecated.This method returns the type of the default rendition node type.- Returns:
- the QName representing the type of the default rendition node type.
-
getTargetMimeType
Deprecated. -
getTargetEncoding
Deprecated. -
setDefaultRenditionContentProp
Deprecated.Sets the default rendition content property.- Parameters:
prop- String
-
getDefaultRenditionContentProp
Deprecated.This method returns the QName of the property that defines the location of the rendition content. An example would be cm:content.- Returns:
- the QName the property defining the location of the rendition content.
-
setContentService
Deprecated.Set the content service- Parameters:
contentService- the content service
-
setMimetypeMap
Deprecated. -
setActionTrackingService
Deprecated. -
createActionDefinition
Deprecated.Description copied from class:ActionExecuterAbstractBaseThis method returns an instance of an ActionDefinition implementation class. By default this will be anActionDefinitionImpl, but this could be overridden.- Overrides:
createActionDefinitionin classActionExecuterAbstractBase
-
executeImpl
Deprecated.Description copied from class:ActionExecuterAbstractBaseExecute the action implementation- Specified by:
executeImplin classActionExecuterAbstractBase- Parameters:
action- the actionsourceNode- the actioned upon node
-
executeImpl
Deprecated. -
executeRenditionImpl
Deprecated. -
checkParameterValues
Deprecated.This method can be overridden by subclasses to provide checking of parameter values. If a parameter value is illegal or inappropriate, an exception should be thrown. -
getRenditionContentProperty
Deprecated.- Parameters:
renditionDefinition- RenditionDefinition- Returns:
- QName
-
render
Deprecated. -
checkSourceNodeExists
Deprecated.- Parameters:
actionedUponNodeRef- NodeRef
-
checkActionIsRenditionDefinition
Deprecated.- Parameters:
action- Action
-
addParameterDefinitions
Deprecated.Description copied from class:ParameterizedItemAbstractBaseAdds the parameter definitions to the list- Specified by:
addParameterDefinitionsin classParameterizedItemAbstractBase- Parameters:
paramList- the parameter definitions list
-
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 classParameterizedItemAbstractBase- Parameters:
paramName- the name of the parameter- Returns:
- the display label of the parameter
-
getParameterDefinitions
Deprecated.Supplies the list of parameters required by this rendering engine. -
getCheckedParam
public static <T> T getCheckedParam(String paramName, Class<T> clazz, RenditionDefinition definition) Deprecated.Gets the value for the named parameter. Checks the type of the parameter is correct and throws aRenditionServiceExceptionif it isn't. Returnsnullif the parameter value isnull- Parameters:
paramName- the name of the parameter being checked.clazz- the expectedClassof the parameter value.definition- theRenditionDefinitioncontaining the parameters.- Returns:
- the parameter value or
null.
-
getParamWithDefault
public static <T> T getParamWithDefault(String paramName, T defaultValue, RenditionDefinition definition) Deprecated.Gets the value for the named parameter. Checks the type of the parameter is the same as the type ofdefaultValueand throws aRenditionServiceExceptionif it isn't. ReturnsdefaultValueif the parameter value isnull- Type Parameters:
T- T- Parameters:
paramName- StringdefaultValue- Tdefinition- RenditionDefinition- Returns:
- T
-
tagSourceNodeAsRenditioned
protected void tagSourceNodeAsRenditioned(RenditionDefinition renditionDef, NodeRef actionedUponNodeRef) Deprecated. -
switchToFinalRenditionNode
protected void switchToFinalRenditionNode(RenditionDefinition renditionDef, NodeRef actionedUponNodeRef) Deprecated. -
notifyCallbackOfException
Deprecated. -
throwWrappedException
Deprecated. -
notifyCallbackOfResult
protected void notifyCallbackOfResult(RenditionDefinition renditionDefinition, ChildAssociationRef result) Deprecated. -
resolveRenditionLocation
protected RenditionLocation resolveRenditionLocation(NodeRef sourceNode, RenditionDefinition definition, NodeRef tempRendition) Deprecated.Given a rendition definition, a source node and a temporary rendition node, this method uses aRenditionLocationResolverto calculate theRenditionLocationof the rendition. -
getExecutionSummary
protected ExecutionSummary getExecutionSummary(AbstractRenderingEngine.RenderingContext renderingContext) Deprecated.Gets theExecutionSummaryfor the givenrenderingContextfrom theActionTrackingService.Note that multiple summaries of the same action instance are not currently supported.
- Parameters:
renderingContext- the rendering context- Returns:
- the found summary or null
-