Class DomainEventsListener
- java.lang.Object
-
- org.nuxeo.ecm.platform.publisher.listeners.DomainEventsListener
-
- All Implemented Interfaces:
EventListener
public class DomainEventsListener extends Object implements EventListener
Handle Domain creation, deletion and lifecycle changes. Register newPublicationTreeConfigDescriptoraccording to the new Domain, if at least one descriptor is pending. UnregisterPublicationTreeConfigDescriptorassociated to the Domain when it is removed or if its lifecycle has changed (ie. to delete state).- Author:
- Thomas Roger
-
-
Field Summary
Fields Modifier and Type Field Description static StringDISABLE_DOMAIN_LISTENER
-
Constructor Summary
Constructors Constructor Description DomainEventsListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidhandleDomainGoesFromTrashedState(DocumentModel doc)protected voidhandleDomainGoesToTrashedState(DocumentModel doc)protected voidhandleDomainLifeCycleChanged(DocumentEventContext docCtx, DocumentModel doc)protected voidhandleDomainMoved(DocumentEventContext docCtx, DocumentModel doc)voidhandleEvent(Event event)Handle the given event.protected voidregisterNewPublicationTrees(DocumentModel doc)protected voidunregisterPublicationTrees(DocumentModel doc)
-
-
-
Field Detail
-
DISABLE_DOMAIN_LISTENER
public static final String DISABLE_DOMAIN_LISTENER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DomainEventsListener
public DomainEventsListener()
-
-
Method Detail
-
handleEvent
public void handleEvent(Event event)
Description copied from interface:EventListenerHandle the given event. The listener can cancel the event by callingEvent.cancel()- Specified by:
handleEventin interfaceEventListener- Parameters:
event- the event
-
registerNewPublicationTrees
protected void registerNewPublicationTrees(DocumentModel doc)
-
unregisterPublicationTrees
protected void unregisterPublicationTrees(DocumentModel doc)
-
handleDomainLifeCycleChanged
protected void handleDomainLifeCycleChanged(DocumentEventContext docCtx, DocumentModel doc)
-
handleDomainGoesToTrashedState
protected void handleDomainGoesToTrashedState(DocumentModel doc)
-
handleDomainGoesFromTrashedState
protected void handleDomainGoesFromTrashedState(DocumentModel doc)
-
handleDomainMoved
protected void handleDomainMoved(DocumentEventContext docCtx, DocumentModel doc)
- Since:
- 7.3
-
-