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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleEvent(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)
-
Constructor Details
-
LockExpirationListener
public LockExpirationListener()
-
-
Method Details
-
handleEvent
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
-
handleExpiredLock
protected void handleExpiredLock(CoreSession session, Session directorySession, DocumentModel entry)
-