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 new 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).
Author:
Thomas Roger
  • Field Details

  • Constructor Details

    • DomainEventsListener

      public DomainEventsListener()
  • Method Details

    • handleEvent

      public void handleEvent(Event event)
      Description copied from interface: EventListener
      Handle the given event. The listener can cancel the event by calling Event.cancel()
      Specified by:
      handleEvent in interface EventListener
      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