Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.relations.core.listener--listener

This contribution is part of XML component org.nuxeo.ecm.relations.core.listener inside nuxeo-platform-relations-core-listener-9.10.jar /OSGI-INF/relations-core-listener-contrib.xml

Documentation

Deletes existing relations on a document when it is removed.

Extension Point

Extension point listener of component EventServiceComponent.

Contributed Items

  • <listener async="false" class="org.nuxeo.ecm.platform.relations.core.listener.DeleteRelationsListener" name="deleteRelationsListener" postCommit="false" priority="-40">
          <event>documentRemoved</event>
        </listener>

XML Source

<extension point="listener" target="org.nuxeo.ecm.core.event.EventServiceComponent">

    <documentation>
      Deletes existing relations on a document when it is removed.
    </documentation>

    <!-- NXP-4951: disable this listener for most common use cases -->
    <!-- 
      <listener name="publishRelationsListener" async="false" postCommit="false"
      class="org.nuxeo.ecm.platform.relations.core.listener.PublishRelationsListener"
      priority="-50">
      <event>documentProxyPublished</event>
      </listener>
    -->

    <listener async="false" class="org.nuxeo.ecm.platform.relations.core.listener.DeleteRelationsListener" name="deleteRelationsListener" postCommit="false" priority="-40">
      <event>documentRemoved</event>
    </listener>

  </extension>