Platform Explorer / CMF 1.8

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-5.4.2-HF05.jar

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>