Class DuplicatedCollectionListener
- java.lang.Object
-
- org.nuxeo.ecm.collections.core.listener.DuplicatedCollectionListener
-
- All Implemented Interfaces:
EventListener
public class DuplicatedCollectionListener extends Object implements EventListener
Event handler to duplicate the collection members of a duplicated collection. The handler is synchronous because it is important to capture the collection member ids of the duplicated collection at the exact moment of duplication. We don't want to duplicate a collection member that was indeed added to the duplicated collection after the duplication. The handler will then launch asynchronous tasks to duplicate the collection members.- Since:
- 5.9.3
-
-
Constructor Summary
Constructors Constructor Description DuplicatedCollectionListener()
-
-
-
Constructor Detail
-
DuplicatedCollectionListener
public DuplicatedCollectionListener()
-
-
Method Detail
-
handleEvent
public void handleEvent(Event event)
Description copied from interface:EventListener
Handle the given event. The listener can cancel the event by callingEvent.cancel()
- Specified by:
handleEvent
in interfaceEventListener
- Parameters:
event
- the event
-
-