Package org.nuxeo.wopi.lock
Class LockExpirationListener
- java.lang.Object
-
- org.nuxeo.wopi.lock.LockExpirationListener
-
- All Implemented Interfaces:
PostCommitEventListener
public class LockExpirationListener extends Object implements PostCommitEventListener
Handles expired WOPI locks by unlocking the related document and removing the stored lock.- Since:
- 10.3
-
-
Constructor Summary
Constructors Constructor Description LockExpirationListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleEvent(EventBundle eventBundle)Handles the set of events that were raised during the life of an user operation.protected voidhandleExpiredLock(CoreSession session, Session directorySession, DocumentModel entry)protected voidhandleExpiredLocks(Session directorySession)
-
-
-
Method Detail
-
handleEvent
public void handleEvent(EventBundle eventBundle)
Description copied from interface:PostCommitEventListenerHandles the set of events that were raised during the life of an user operation.The events are fired as a
BundleEventafter the transaction is committed.- Specified by:
handleEventin interfacePostCommitEventListener- Parameters:
eventBundle- the events to handle
-
handleExpiredLocks
protected void handleExpiredLocks(Session directorySession)
-
handleExpiredLock
protected void handleExpiredLock(CoreSession session, Session directorySession, DocumentModel entry)
-
-