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 void
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)
-
-
-
Method Detail
-
handleEvent
public void handleEvent(EventBundle eventBundle)
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
protected void handleExpiredLocks(Session directorySession)
-
handleExpiredLock
protected void handleExpiredLock(CoreSession session, Session directorySession, DocumentModel entry)
-
-