public class DomainEventsListener extends Object implements EventListener
PublicationTreeConfigDescriptor
according to the new Domain, if at least one descriptor is pending. Unregister
PublicationTreeConfigDescriptor
associated to the Domain when it is removed or if its lifecycle has changed
(ie. to delete state).Modifier and Type | Field and Description |
---|---|
static String |
DISABLE_DOMAIN_LISTENER |
Constructor and Description |
---|
DomainEventsListener() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleDomainGoesFromDeletedState(DocumentModel doc) |
protected void |
handleDomainGoesToDeletedState(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) |
public static final String DISABLE_DOMAIN_LISTENER
public DomainEventsListener()
public void handleEvent(Event event)
EventListener
Event.cancel()
handleEvent
in interface EventListener
event
- the eventprotected void registerNewPublicationTrees(DocumentModel doc)
protected void unregisterPublicationTrees(DocumentModel doc)
protected void handleDomainLifeCycleChanged(DocumentEventContext docCtx, DocumentModel doc)
protected void handleDomainGoesToDeletedState(DocumentModel doc)
protected void handleDomainGoesFromDeletedState(DocumentModel doc)
protected void handleDomainMoved(DocumentEventContext docCtx, DocumentModel doc)
Copyright © 2015 Nuxeo SA. All rights reserved.