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 Details

    • LockExpirationListener

      public LockExpirationListener()
  • Method Details

    • 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 interface PostCommitEventListener
      Parameters:
      eventBundle - the events to handle
    • handleExpiredLocks

      protected void handleExpiredLocks(Session directorySession)
    • handleExpiredLock

      protected void handleExpiredLock(CoreSession session, Session directorySession, DocumentModel entry)