Class DocumentRouteOrphanedListener

java.lang.Object
org.nuxeo.ecm.platform.routing.core.listener.DocumentRouteOrphanedListener
All Implemented Interfaces:
PostCommitEventListener

public class DocumentRouteOrphanedListener extends Object implements PostCommitEventListener
Listener that deletes orphan DocumentRoutes.
Since:
11.2
  • Field Details

  • Constructor Details

    • DocumentRouteOrphanedListener

      public DocumentRouteOrphanedListener()
  • Method Details

    • handleEvent

      public void handleEvent(EventBundle events)
      Description copied from interface: PostCommitEventListener
      Handles the set of events that were raised during the life of an user operation.

      The events are fired as a BundleEvent after the transaction is committed.

      Specified by:
      handleEvent in interface PostCommitEventListener
      Parameters:
      events - the events to handle
    • deleteOrphanDocumentRoutes

      protected void deleteOrphanDocumentRoutes(CoreSession session, String id)
      Removes the given id from DocumentRoutes attached documents list and deletes the DocumentRoutes if they are not attached to a document anymore.
    • deleteOrphanTasks

      protected void deleteOrphanTasks(CoreSession session, String id)