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 newPublicationTreeConfigDescriptor
according to the new Domain, if at least one descriptor is pending. UnregisterPublicationTreeConfigDescriptor
associated 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 String
DISABLE_DOMAIN_LISTENER
-
Constructor Summary
Constructors Constructor Description DomainEventsListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
handleDomainGoesFromTrashedState(DocumentModel doc)
protected void
handleDomainGoesToTrashedState(DocumentModel doc)
protected void
handleDomainLifeCycleChanged(DocumentEventContext docCtx, DocumentModel doc)
protected void
handleDomainMoved(DocumentEventContext docCtx, DocumentModel doc)
void
handleEvent(Event event)
Handle the given event.protected void
registerNewPublicationTrees(DocumentModel doc)
protected void
unregisterPublicationTrees(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:EventListener
Handle the given event. The listener can cancel the event by callingEvent.cancel()
- Specified by:
handleEvent
in 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
-
-