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 public class ScriptRenditionService extends BaseScopableProcessorExtension
Deprecated.The RenditionService is being replace by the simpler async RenditionService2.Script object representing the rendition service.- Author:
- Neil McErlean
-
-
Constructor Summary
Constructors Constructor Description ScriptRenditionService()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ScriptRenditionDefinitioncreateRenditionDefinition(java.lang.String renditionName, java.lang.String renderingEngineName)Deprecated.Creates a newScriptRenditionDefinitionand sets the rendition name and the rendering engine name to the specified values.ScriptNodegetRenditionByName(ScriptNode node, java.lang.String renditionName)Deprecated.This method gets the rendition of the specified node identified by the provided rendition name.ScriptNode[]getRenditions(ScriptNode node)Deprecated.This method gets all the renditions of the specified node.ScriptNode[]getRenditions(ScriptNode node, java.lang.String mimeTypePrefix)Deprecated.This method gets all the renditions of the specified node filtered by MIME-type prefix.ScriptNoderender(ScriptNode sourceNode, java.lang.String renditionDefQName)Deprecated.This method renders the specified source node using the specified saved rendition definition.ScriptNoderender(ScriptNode sourceNode, ScriptRenditionDefinition scriptRenditionDef)Deprecated.voidsetServiceRegistry(ServiceRegistry serviceRegistry)Deprecated.Set the service registry-
Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScope
-
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
-
-
-
Method Detail
-
setServiceRegistry
public void setServiceRegistry(ServiceRegistry serviceRegistry)
Deprecated.Set the service registry- Parameters:
serviceRegistry- the service registry.
-
createRenditionDefinition
public ScriptRenditionDefinition createRenditionDefinition(java.lang.String renditionName, java.lang.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:
RenditionService.createRenditionDefinition(QName, String)
-
render
public ScriptNode render(ScriptNode sourceNode, java.lang.String renditionDefQName)
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:
RenditionService.render(org.alfresco.service.cmr.repository.NodeRef, RenditionDefinition)
-
render
public ScriptNode render(ScriptNode sourceNode, ScriptRenditionDefinition scriptRenditionDef)
Deprecated.
-
getRenditions
public ScriptNode[] getRenditions(ScriptNode node)
Deprecated.This method gets all the renditions of the specified node.- Parameters:
node- the source node- Returns:
- an array of the renditions.
- See Also:
RenditionService.getRenditions(org.alfresco.service.cmr.repository.NodeRef)
-
getRenditions
public ScriptNode[] getRenditions(ScriptNode node, java.lang.String mimeTypePrefix)
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:
RenditionService.getRenditions(org.alfresco.service.cmr.repository.NodeRef)
-
getRenditionByName
public ScriptNode getRenditionByName(ScriptNode node, java.lang.String renditionName)
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:
RenditionService.getRenditionByName(org.alfresco.service.cmr.repository.NodeRef, QName)
-
-