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 Summary
Fields Modifier and Type Field Description protected static String
QUERY_GET_RELATED_DOCUMENT_ROUTES
-
Constructor Summary
Constructors Constructor Description DocumentRouteOrphanedListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
handleEvent(EventBundle events)
Handles the set of events that were raised during the life of an user operation.
-
-
-
Field Detail
-
QUERY_GET_RELATED_DOCUMENT_ROUTES
protected static final String QUERY_GET_RELATED_DOCUMENT_ROUTES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DocumentRouteOrphanedListener
public DocumentRouteOrphanedListener()
-
-
Method Detail
-
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 interfacePostCommitEventListener
- 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.
-
-