Platform Explorer / Nuxeo Platform LTS 2015 7.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-7.10.jar /OSGI-INF/relations-core-listener-contrib.xml

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>