Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.relations.core.listener
Class PublishRelationsListener

java.lang.Object
  extended by org.nuxeo.ecm.platform.relations.core.listener.PublishRelationsListener
All Implemented Interfaces:
EventListener

public class PublishRelationsListener
extends Object
implements EventListener

Core Event listener to copy relations affecting the source document to the proxy upon publication events and the relations that were present on the replaced proxies if any. If this core event listener is used in combination with another core event listener that cleans relation on deleted documents, it should be executed before the cleaning listener so as to be able to copy relations from the deleted proxies. This core event listener cannot work in asynchronous or post commit mode.

Author:
ogrisel

Constructor Summary
PublishRelationsListener()
           
 
Method Summary
 List<String> getGraphNamesForCopyFromReplacedProxy()
           
 List<String> getGraphNamesForCopyFromWork()
           
 RelationManager getRelationManager()
           
 void handleEvent(Event event)
          Handle the given event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublishRelationsListener

public PublishRelationsListener()
Method Detail

getRelationManager

public RelationManager getRelationManager()
                                   throws ClientException
Throws:
ClientException

getGraphNamesForCopyFromWork

public List<String> getGraphNamesForCopyFromWork()
                                          throws ClientException
Throws:
ClientException

getGraphNamesForCopyFromReplacedProxy

public List<String> getGraphNamesForCopyFromReplacedProxy()
                                                   throws ClientException
Throws:
ClientException

handleEvent

public void handleEvent(Event event)
                 throws ClientException
Description copied from interface: EventListener
Handle the given event. The listener can cancel the event by calling Event.cancel()

Specified by:
handleEvent in interface EventListener
Parameters:
event - the event
Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.