Class DocumentRouteOrphanedListener
java.lang.Object
org.nuxeo.ecm.platform.routing.core.listener.DocumentRouteOrphanedListener
- All Implemented Interfaces:
PostCommitEventListener
Listener that deletes orphan DocumentRoutes.
- Since:
- 11.2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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.protected void
deleteOrphanTasks
(CoreSession session, String id) void
handleEvent
(EventBundle events) Handles the set of events that were raised during the life of an user operation.
-
Field Details
-
QUERY_GET_RELATED_DOCUMENT_ROUTES
- See Also:
-
QUERY_GET_TASKS_RELATED_TO_DOCUMENT_ROUTE
- See Also:
-
-
Constructor Details
-
DocumentRouteOrphanedListener
public DocumentRouteOrphanedListener()
-
-
Method Details
-
handleEvent
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 interfacePostCommitEventListener
- Parameters:
events
- the events to handle
-
deleteOrphanDocumentRoutes
Removes the given id from DocumentRoutes attached documents list and deletes the DocumentRoutes if they are not attached to a document anymore. -
deleteOrphanTasks
-