org.alfresco.repo.rendition
Class RenditionNodeManager
java.lang.Object
org.alfresco.repo.rendition.RenditionNodeManager
public class RenditionNodeManager
- extends java.lang.Object
This class is responsible for placing a rendition node in the correct
location given a temporary rendition, a source node, a rendition location and
optionally an old rendition. This manages the complex logic of deciding
whether to move an old rendition or orphan it and create a new one amongst
other things.
|
Method Summary |
org.alfresco.service.cmr.repository.ChildAssociationRef |
findOrCreateRenditionNode()
This method returns the ChildAssociationRef for the rendition node. |
void |
transferNodeProperties()
This method copies properties from the temporary rendition node onto the targetNode. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RenditionNodeManager
public RenditionNodeManager(org.alfresco.service.cmr.repository.NodeRef sourceNode,
org.alfresco.service.cmr.repository.NodeRef tempRenditionNode,
RenditionLocation location,
RenditionDefinition renditionDefinition,
org.alfresco.service.cmr.repository.NodeService nodeService,
RenditionService renditionService,
BehaviourFilter behaviourFilter)
- Parameters:
sourceNode - the source node which is being rendered.tempRenditionNode - the temporary renditionlocation - the proposed location of the rendition node.renditionDefinition - nodeService - renditionService -
findOrCreateRenditionNode
public org.alfresco.service.cmr.repository.ChildAssociationRef findOrCreateRenditionNode()
- This method returns the
ChildAssociationRef for the rendition node. In doing this
it may reuse an existing rendition node, move an existing rendition node or create a new rendition node
as appropriate.
transferNodeProperties
public void transferNodeProperties()
- This method copies properties from the temporary rendition node onto the targetNode. It also sets the node type.
Some properties are not copied.
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.