Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.lifecycle.event
Class BulkLifeCycleChangeListener

java.lang.Object
  extended by org.nuxeo.ecm.core.lifecycle.event.BulkLifeCycleChangeListener
All Implemented Interfaces:
PostCommitEventListener

public class BulkLifeCycleChangeListener
extends Object
implements PostCommitEventListener

Listener for life cycle change events.

If event occurs on a folder, it will recurse on children to perform the same transition if possible.

If the transition event is about marking documents as "deleted", and a child cannot perform the transition, it will be removed.

Undelete transitions are not processed, but this listener instead looks for a specific documentUndeleted event. This is because we want to undelete documents (parents) under which we don't want to recurse.


Constructor Summary
BulkLifeCycleChangeListener()
           
 
Method Summary
 void handleEvent(EventBundle events)
          Handles the set of events that were raised during the life of an user operation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkLifeCycleChangeListener

public BulkLifeCycleChangeListener()
Method Detail

handleEvent

public void handleEvent(EventBundle events)
                 throws ClientException
Description copied from interface: PostCommitEventListener
Handles the set of events that were raised during the life of an user operation.

The events are fired as a BundleEvent after the transaction is committed.

Specified by:
handleEvent in interface PostCommitEventListener
Parameters:
events - the events to handle
Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.