Class ScriptRenditionService
java.lang.Object
org.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
org.alfresco.repo.rendition.script.ScriptRenditionService
- All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension,Scopeable
Deprecated.
The RenditionService is being replace by the simpler async RenditionService2.
Script object representing the rendition service.
- Author:
- Neil McErlean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRenditionDefinition(String renditionName, String renderingEngineName) Deprecated.Creates a newScriptRenditionDefinitionand sets the rendition name and the rendering engine name to the specified values.getRenditionByName(ScriptNode node, String renditionName) Deprecated.This method gets the rendition of the specified node identified by the provided rendition name.getRenditions(ScriptNode node) Deprecated.This method gets all the renditions of the specified node.getRenditions(ScriptNode node, String mimeTypePrefix) Deprecated.This method gets all the renditions of the specified node filtered by MIME-type prefix.render(ScriptNode sourceNode, String renditionDefQName) Deprecated.This method renders the specified source node using the specified saved rendition definition.render(ScriptNode sourceNode, ScriptRenditionDefinition scriptRenditionDef) Deprecated.voidsetServiceRegistry(ServiceRegistry serviceRegistry) Deprecated.Set the service registryMethods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScopeMethods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
Constructor Details
-
ScriptRenditionService
public ScriptRenditionService()Deprecated.
-
-
Method Details
-
setServiceRegistry
Deprecated.Set the service registry- Parameters:
serviceRegistry- the service registry.
-
createRenditionDefinition
public ScriptRenditionDefinition createRenditionDefinition(String renditionName, String renderingEngineName) Deprecated.Creates a newScriptRenditionDefinitionand sets the rendition name and the rendering engine name to the specified values.- Parameters:
renditionName- A unique identifier used to specify the createdScriptRenditionDefinition.renderingEngineName- The name of the rendering engine associated with thisScriptRenditionDefinition.- Returns:
- the created
ScriptRenditionDefinition. - See Also:
-
render
Deprecated.This method renders the specified source node using the specified saved rendition definition.- Parameters:
sourceNode- the source node to be rendered.renditionDefQName- the rendition definition to be used e.g. "cm:doclib" or "{http://www.alfresco.org/model/content/1.0}imgpreview"- Returns:
- the rendition scriptnode.
- See Also:
-
render
Deprecated. -
getRenditions
Deprecated.This method gets all the renditions of the specified node.- Parameters:
node- the source node- Returns:
- an array of the renditions.
- See Also:
-
getRenditions
Deprecated.This method gets all the renditions of the specified node filtered by MIME-type prefix. Renditions whose MIME-type string startsWith the prefix will be returned.- Parameters:
node- the source node for the renditionsmimeTypePrefix- a prefix to check against the rendition MIME-types. This must not be null and must not be an empty String- Returns:
- an array of the filtered renditions.
- See Also:
-
getRenditionByName
Deprecated.This method gets the rendition of the specified node identified by the provided rendition name.- Parameters:
node- the source node for the renditionsrenditionName- the renditionName used to identify a rendition. e.g. cm:doclib or "{http://www.alfresco.org/model/content/1.0}imgpreview"- Returns:
- the parent association for the rendition or
nullif there is no such rendition. - See Also:
-