Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.drive.listeners--listener

This contribution is part of XML component org.nuxeo.drive.listeners inside nuxeo-drive-core-7.10-HF07.jar /OSGI-INF/nuxeodrive-listeners.xml

Notify the NuxeoDriveManager service to invalidate it's cache when a document is deleted (physically or just the trash).

Extension point

Extension point listener of component EventServiceComponent.

Contributed items

  • <listener async="false" class="org.nuxeo.drive.listener.NuxeoDriveCacheInvalidationListener" name="nuxeoDriveCacheInvalidationListener" postCommit="false" priority="300">
          <event>lifecycle_transition_event</event>
          <event>documentRemoved</event>
          <event>documentSecurityUpdated</event>
          <event>addedToCollection</event>
          <event>removedFromCollection</event>
        </listener>
  • <listener async="false" class="org.nuxeo.drive.listener.NuxeoDriveFileSystemDeletionListener" name="nuxeoDriveFileSystemDeletionListener" postCommit="false" priority="200">
          <event>beforeDocumentModification</event>
          <event>aboutToMove</event>
          <event>lifecycle_transition_event</event>
          <event>aboutToRemove</event>
          <event>beforeDocumentSecurityModification</event>
          <event>aboutToUnRegisterRoot</event>
          <event>beforeRemovedFromCollection</event>
        </listener>
  • <listener async="true" class="org.nuxeo.drive.listener.NuxeoDriveVirtualEventLogger" name="nuxeoDriveVirtualEventLoggerListener" postCommit="true"/>

XML source

<extension point="listener" target="org.nuxeo.ecm.core.event.EventServiceComponent">
    <documentation>
      Notify the NuxeoDriveManager service to invalidate
      it's cache when a document is deleted (physically or just the
      trash).

      @author Olivier Grisel
    </documentation>

    <listener async="false" class="org.nuxeo.drive.listener.NuxeoDriveCacheInvalidationListener" name="nuxeoDriveCacheInvalidationListener" postCommit="false" priority="300">
      <event>lifecycle_transition_event</event>
      <event>documentRemoved</event>
      <event>documentSecurityUpdated</event>
      <event>addedToCollection</event>
      <event>removedFromCollection</event>
    </listener>

    <documentation>
      Handle document removal or root unregistration in
      order to be able to
      populate the audit log and hence compute
      consistent change
      summaries for each user.

      @author Olivier Grisel
    </documentation>
    <listener async="false" class="org.nuxeo.drive.listener.NuxeoDriveFileSystemDeletionListener" name="nuxeoDriveFileSystemDeletionListener" postCommit="false" priority="200">
      <event>beforeDocumentModification</event>
      <event>aboutToMove</event>
      <event>lifecycle_transition_event</event>
      <event>aboutToRemove</event>
      <event>beforeDocumentSecurityModification</event>
      <event>aboutToUnRegisterRoot</event>
      <event>beforeRemovedFromCollection</event>
    </listener>

    <documentation>
      Populate the audit log with virtual events generated by the nuxeoDriveFileSystemDeletionListener.

      @author Antoine Taillefer
    </documentation>
    <listener async="true" class="org.nuxeo.drive.listener.NuxeoDriveVirtualEventLogger" name="nuxeoDriveVirtualEventLoggerListener" postCommit="true"/>

  </extension>