Package org.alfresco.repo.rendition
Class RenditionServiceImpl
java.lang.Object
org.alfresco.repo.rendition.RenditionServiceImpl
- All Implemented Interfaces:
CheckOutCheckInServicePolicies.BeforeCheckOut,LockServicePolicies.BeforeLock,ClassPolicy,Policy,RenditionDefinitionPersister,RenditionService
@Deprecated
public class RenditionServiceImpl
extends Object
implements RenditionService, RenditionDefinitionPersister, CheckOutCheckInServicePolicies.BeforeCheckOut, LockServicePolicies.BeforeLock
Deprecated.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg -
Field Summary
Fields inherited from interface org.alfresco.repo.coci.CheckOutCheckInServicePolicies.BeforeCheckOut
QNAMEFields inherited from interface org.alfresco.repo.lock.LockServicePolicies.BeforeLock
QNAMEFields inherited from interface org.alfresco.service.cmr.rendition.RenditionService
PARAM_DESTINATION_NODE, PARAM_DESTINATION_PATH_TEMPLATE, PARAM_IS_COMPONENT_RENDITION, PARAM_ORPHAN_EXISTING_RENDITION, PARAM_RENDITION_NODETYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeCheckOut(NodeRef nodeRef, NodeRef destinationParentNodeRef, QName destinationAssocTypeQName, QName destinationAssocQName) Deprecated.voidbeforeLock(NodeRef nodeRef, LockType lockType) Deprecated.Called before an attempt to lock the given node is made.voidcancelRenditions(NodeRef sourceNode) Deprecated.Cancels all known cancellable running renditions for the givenNodeRefvia theActionTrackingService.voidcancelRenditions(NodeRef sourceNode, String type) Deprecated.Cancels all known cancellable running renditions for the givenNodeRefand type via theActionTrackingService.createCompositeRenditionDefinition(QName renditionName) Deprecated.Creates a newCompositeRenditionDefinitionand sets the rendition name and the rendering engine name to the specified values.createRenditionDefinition(QName renditionDefinitionName, String renderingEngineName) Deprecated.Creates a newRenditionDefinitionand sets the rendition name and the rendering engine name to the specified values.Deprecated.Returns theRenderingEngineDefinitionassociated with the specified rendering engine name.Deprecated.getRenditionByName(NodeRef node, QName renditionName) Deprecated.This method gets the rendition of the specified node identified by the provided rendition name.getRenditions(NodeRef node) Deprecated.This method gets all the renditions of the specified node.getRenditions(NodeRef node, String mimeTypePrefix) Deprecated.This method gets all the renditions of the specified node filtered by MIME-type prefix.getSourceNode(NodeRef renditionNode) Deprecated.This method gets the source node for the specified rendition node.voidinit()Deprecated.booleanisRendition(NodeRef node) Deprecated.This method returnstrueif the specified NodeRef is a valid rendition node, elsefalse.loadRenditionDefinition(QName renditionDefinitionName) Deprecated.This method retrieves aRenditionDefinitionthat has been stored in the repository using thesave()method.Deprecated.This method retrieves theRenditionDefinitions that have been stored in the repository using thesave()method.loadRenditionDefinitions(String renditionEngineName) Deprecated.This method retrieves the storedRenditionDefinitions that have been registered for the specified rendering engine name.render(NodeRef sourceNode, RenditionDefinition definition) Deprecated.This method synchronously renders content as specified by the givenRenditionDefinition.voidrender(NodeRef sourceNode, RenditionDefinition definition, RenderCallback callback) Deprecated.This method asynchronously renders content as specified by the givenRenditionDefinition.Deprecated.This method synchronously renders content as specified by the givenrendition name.voidrender(NodeRef sourceNode, QName renditionDefinitionQName, RenderCallback callback) Deprecated.This method asynchronously renders content as specified by the givenrendition definition name.voidsaveRenditionDefinition(RenditionDefinition renderingAction) Deprecated.This method serializes theRenditionDefinitionand stores it in the repository.voidsetActionService(ActionService actionService) Deprecated.Injects the ActionService bean.voidsetActionTrackingService(ActionTrackingService actionTrackingService) Deprecated.Injects the ActionTrackingService bean.voidsetDictionaryService(DictionaryService dictionaryService) Deprecated.Injects the DictionaryService bean.voidsetKnownCancellableActionTypes(List<String> knownCancellableActionTypes) Deprecated.Sets the list of known cancellable actions used bycancelRenditions(NodeRef).voidsetPolicyComponent(PolicyComponent policyComponent) Deprecated.Injects the PolicyComponent bean.voidsetRenditionDefinitionPersister(RenditionDefinitionPersister renditionDefinitionPersister) Deprecated.Injects the RenditionDefinitionPersister bean.voidDeprecated.voidsetRenditionService2(RenditionService2Impl renditionService2) Deprecated.voidsetServiceRegistry(ServiceRegistry serviceRegistry) Deprecated.Injects the ServiceRegistry bean.booleanusingRenditionService2(NodeRef sourceNodeRef, RenditionDefinition rendDefn) Deprecated.If a rendition has been created by the newer RenditionService2, this method will return true.
-
Constructor Details
-
RenditionServiceImpl
public RenditionServiceImpl()Deprecated.
-
-
Method Details
-
setRenditionDefinitionPersister
public void setRenditionDefinitionPersister(RenditionDefinitionPersister renditionDefinitionPersister) Deprecated.Injects the RenditionDefinitionPersister bean.- Parameters:
renditionDefinitionPersister- RenditionDefinitionPersister
-
setRenditionPreventionRegistry
Deprecated.- Since:
- 4.0.1
-
setServiceRegistry
Deprecated.Injects the ServiceRegistry bean.- Parameters:
serviceRegistry- ServiceRegistry
-
setActionService
Deprecated.Injects the ActionService bean.- Parameters:
actionService- ActionService
-
setActionTrackingService
Deprecated.Injects the ActionTrackingService bean.- Parameters:
actionTrackingService- ActionTrackingService
-
setDictionaryService
Deprecated.Injects the DictionaryService bean.- Parameters:
dictionaryService- DictionaryService
-
setPolicyComponent
Deprecated.Injects the PolicyComponent bean.- Parameters:
policyComponent- PolicyComponent
-
setKnownCancellableActionTypes
Deprecated.Sets the list of known cancellable actions used bycancelRenditions(NodeRef).- Since:
- 4.1.6
-
setRenditionService2
Deprecated. -
init
public void init()Deprecated. -
getRenderingEngineDefinition
Deprecated.Description copied from interface:RenditionServiceReturns theRenderingEngineDefinitionassociated with the specified rendering engine name.- Specified by:
getRenderingEngineDefinitionin interfaceRenditionService- Parameters:
name- The rendering engine name.- Returns:
- The
RenderingEngineDefinitionor null.
-
getRenderingEngineDefinitions
Deprecated.- Specified by:
getRenderingEngineDefinitionsin interfaceRenditionService- Returns:
- A
Listof all availableRenderingEngineDefinitions.
-
createRenditionDefinition
public RenditionDefinition createRenditionDefinition(QName renditionDefinitionName, String renderingEngineName) Deprecated.Description copied from interface:RenditionServiceCreates a newRenditionDefinitionand sets the rendition name and the rendering engine name to the specified values.- Specified by:
createRenditionDefinitionin interfaceRenditionService- Parameters:
renditionDefinitionName- A unique identifier used to specify the createdRenditionDefinition.renderingEngineName- The name of the rendering engine associated with thisRenditionDefinition.- Returns:
- the created
RenditionDefinition.
-
createCompositeRenditionDefinition
Deprecated.Description copied from interface:RenditionServiceCreates a newCompositeRenditionDefinitionand sets the rendition name and the rendering engine name to the specified values.- Specified by:
createCompositeRenditionDefinitionin interfaceRenditionService- Parameters:
renditionName- A unique identifier used to specify the createdRenditionDefinition.- Returns:
- the created
CompositeRenditionDefinition.
-
render
Deprecated.Description copied from interface:RenditionServiceThis method synchronously renders content as specified by the givenRenditionDefinition. The content to be rendered is provided by the specified source node.- Specified by:
renderin interfaceRenditionService- Parameters:
sourceNode- the node from which the content is retrieved.definition- this fully specifies the rendition which is to be performed.- Returns:
- a child association reference which is the link from the source node to the newly rendered content.
-
render
Deprecated.Description copied from interface:RenditionServiceThis method asynchronously renders content as specified by the givenRenditionDefinition. The content to be rendered is provided by the specified source node.- Specified by:
renderin interfaceRenditionService- Parameters:
sourceNode- the node from which the content is retrieved.definition- this fully specifies the rendition which is to be performed.callback- a callback object to handle the ultimate result of the rendition.
-
render
Deprecated.Description copied from interface:RenditionServiceThis method synchronously renders content as specified by the givenrendition name. The content to be rendered is provided by the specified source node. The Rendition Definition will be loaded from the standard location as system thus allowing rendition definitions to be used even when the Data Dictionary has restricted read access.- Specified by:
renderin interfaceRenditionService- Parameters:
sourceNode- the node from which the content is retrieved.renditionDefinitionQName- the rendition definition which is to be performed.- Returns:
- a child association reference which is the link from the source node to the newly rendered content.
-
render
Deprecated.Description copied from interface:RenditionServiceThis method asynchronously renders content as specified by the givenrendition definition name. The content to be rendered is provided by the specified source node. The Rendition Definition will be loaded from the standard location as system thus allowing rendition definitions to be used even when the Data Dictionary has restricted read access.- Specified by:
renderin interfaceRenditionService- Parameters:
sourceNode- the node from which the content is retrieved.renditionDefinitionQName- the rendition definition which is to be performed.callback- a callback object to handle the ultimate result of the rendition.
-
saveRenditionDefinition
Deprecated.Description copied from interface:RenditionDefinitionPersisterThis method serializes theRenditionDefinitionand stores it in the repository.RenditionDefinitions saved in this way may be retrieved using theload()method.- Specified by:
saveRenditionDefinitionin interfaceRenditionDefinitionPersister- Parameters:
renderingAction- TheRenditionDefinitionto be persisted.
-
loadRenditionDefinition
Deprecated.Description copied from interface:RenditionDefinitionPersisterThis method retrieves aRenditionDefinitionthat has been stored in the repository using thesave()method. If noRenditionDefinitionexists in the repository with the specified rendition name then this method returns null.- Specified by:
loadRenditionDefinitionin interfaceRenditionDefinitionPersister- Parameters:
renditionDefinitionName- The unique identifier used to specify theRenditionDefinitionto retrieve.- Returns:
- The specified
RenditionDefinitionor null.
-
loadRenditionDefinitions
Deprecated.Description copied from interface:RenditionDefinitionPersisterThis method retrieves theRenditionDefinitions that have been stored in the repository using thesave()method. If there are no suchRenditionDefinitions, an empty list is returned.- Specified by:
loadRenditionDefinitionsin interfaceRenditionDefinitionPersister- Returns:
- The
RenditionDefinitions.
-
loadRenditionDefinitions
Deprecated.Description copied from interface:RenditionDefinitionPersisterThis method retrieves the storedRenditionDefinitions that have been registered for the specified rendering engine name. If there are no such renderingRenditionDefinitions, an empty list is returned.- Specified by:
loadRenditionDefinitionsin interfaceRenditionDefinitionPersister- Parameters:
renditionEngineName- the name of a rendering engine. This is usually the spring bean name.- Returns:
- The
RenditionDefinitions. - See Also:
-
getRenditions
Deprecated.Description copied from interface:RenditionServiceThis method gets all the renditions of the specified node.- Specified by:
getRenditionsin interfaceRenditionService- Returns:
- a list of ChildAssociationRefs which link the source node to the renditions.
-
getRenditions
Deprecated.Description copied from interface:RenditionServiceThis 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.- Specified by:
getRenditionsin interfaceRenditionService- 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:
- a list of ChildAssociationRefs which link the source node to the filtered renditions.
-
getRenditionByName
Deprecated.Description copied from interface:RenditionServiceThis method gets the rendition of the specified node identified by the provided rendition name.- Specified by:
getRenditionByNamein interfaceRenditionService- Parameters:
node- the source node for the renditionsrenditionName- the renditionName used to identify a rendition.- Returns:
- the ChildAssociationRef which links the source node to the
rendition or
nullif there is no such rendition.
-
isRendition
Deprecated.Description copied from interface:RenditionServiceThis method returnstrueif the specified NodeRef is a valid rendition node, elsefalse. A nodeRef is a rendition node if it has the rn:rendition aspect (or sub-aspect) applied.- Specified by:
isRenditionin interfaceRenditionService- Parameters:
node- NodeRef- Returns:
trueif a rendition, elsefalse
-
getSourceNode
Deprecated.Description copied from interface:RenditionServiceThis method gets the source node for the specified rendition node. There should only be one source node for any given rendition node.- Specified by:
getSourceNodein interfaceRenditionService- Parameters:
renditionNode- the nodeRef holding the rendition.- Returns:
- the ChildAssociationRef whose parentNodeRef is the source node, or
nullif there is no source node. - See Also:
-
cancelRenditions
Deprecated.Description copied from interface:RenditionServiceCancels all known cancellable running renditions for the givenNodeRefvia theActionTrackingService.- Specified by:
cancelRenditionsin interfaceRenditionService- Parameters:
sourceNode- theNodeRefthe action is acting on
-
cancelRenditions
Deprecated.Description copied from interface:RenditionServiceCancels all known cancellable running renditions for the givenNodeRefand type via theActionTrackingService.- Specified by:
cancelRenditionsin interfaceRenditionService- Parameters:
sourceNode- theNodeRefthe action is acting ontype- the rendition type (rending engine name)
-
beforeCheckOut
public void beforeCheckOut(NodeRef nodeRef, NodeRef destinationParentNodeRef, QName destinationAssocTypeQName, QName destinationAssocQName) Deprecated.- Specified by:
beforeCheckOutin interfaceCheckOutCheckInServicePolicies.BeforeCheckOut- Parameters:
nodeRef- NodeRefdestinationParentNodeRef- NodeRefdestinationAssocTypeQName- QNamedestinationAssocQName- QName
-
beforeLock
Deprecated.Description copied from interface:LockServicePolicies.BeforeLockCalled before an attempt to lock the given node is made.- Specified by:
beforeLockin interfaceLockServicePolicies.BeforeLock- Parameters:
nodeRef- NodeReflockType- LockType
-
usingRenditionService2
Deprecated.Description copied from interface:RenditionServiceIf a rendition has been created by the newer RenditionService2, this method will return true. In this case the original RenditionService should not be used to update an existing rendition if the content changes. These renditions can be identified by the existence of the rendition2 aspect. RenditionService2 also listens for content changes and will perform the rendition. If RenditionService2 has a definition with the same name (matched on the local part of the supplied rendDef's name) and the target mimetype matches, RenditionService2 will also be used. This is being done to help with the conversion of custom transformers and renditions. The basic definitions (called "medium", "doclib", "imgpreview", "avatar", "avatar32", "webpreview", "pdf") already exist. Rather than writing a converter form one definition to the newer one, it is suggested that a newer RenditionDefinition2 is simply defined to avoid having to worry about any complexities in converting TransformationOptions into a simple flat Map structure.- Specified by:
usingRenditionService2in interfaceRenditionService
-