Package org.nuxeo.wopi.lock
Class LockExpirationListener
java.lang.Object
org.nuxeo.wopi.lock.LockExpirationListener
- All Implemented Interfaces:
PostCommitEventListener
Handles expired WOPI locks by unlocking the related document and removing the stored lock.
- Since:
- 10.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleEvent
(EventBundle eventBundle) Handles the set of events that were raised during the life of an user operation.protected void
handleExpiredLock
(CoreSession session, Session directorySession, DocumentModel entry) protected void
handleExpiredLocks
(Session directorySession)
-
Constructor Details
-
LockExpirationListener
public LockExpirationListener()
-
-
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:
eventBundle
- the events to handle
-
handleExpiredLocks
-
handleExpiredLock
protected void handleExpiredLock(CoreSession session, Session directorySession, DocumentModel entry)
-