<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to invalidate a document from an event listener in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-invalidate-a-document-from-an-event-listener/m-p/316213#M3214</link>
    <description>&lt;P&gt;Hi,
You can access EventContext, CoreSession,  SourceDocument from DocumentEventContext where event is fired ( you can control process of firing event ),   but not Navigation Context as listener is executed on background can't access navigation context. You also can get Services instances on listener, as for example Framework.getService(serviceClass),  you can contribute your custom services (with your  business logic)  or use Document Adapter.
Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2017 09:53:47 GMT</pubDate>
    <dc:creator>00000001_</dc:creator>
    <dc:date>2017-06-08T09:53:47Z</dc:date>
    <item>
      <title>How to invalidate a document from an event listener</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-invalidate-a-document-from-an-event-listener/m-p/316212#M3213</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a listener class that implements org.nuxeo.ecm.core.event.EventListener, and I want to invalidate the current document from there. Normally, in a bean, I use to inject NavigationContext, and then use its method to invalidate the document. But I don't know how can I inject NavigationContext to a listener (if it is possible), and I don't know if there is another way to invalidate the current document from there too.&lt;/P&gt;
&lt;P&gt;Also, is there a way to inject a bean to a listener? Because that would also work for me.&lt;/P&gt;
&lt;P&gt;Thank you very much in advance,&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 17:26:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-invalidate-a-document-from-an-event-listener/m-p/316212#M3213</guid>
      <dc:creator>ioihanguren_</dc:creator>
      <dc:date>2017-05-31T17:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to invalidate a document from an event listener</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-invalidate-a-document-from-an-event-listener/m-p/316213#M3214</link>
      <description>&lt;P&gt;Hi,
You can access EventContext, CoreSession,  SourceDocument from DocumentEventContext where event is fired ( you can control process of firing event ),   but not Navigation Context as listener is executed on background can't access navigation context. You also can get Services instances on listener, as for example Framework.getService(serviceClass),  you can contribute your custom services (with your  business logic)  or use Document Adapter.
Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 09:53:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-invalidate-a-document-from-an-event-listener/m-p/316213#M3214</guid>
      <dc:creator>00000001_</dc:creator>
      <dc:date>2017-06-08T09:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to invalidate a document from an event listener</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-invalidate-a-document-from-an-event-listener/m-p/316214#M3215</link>
      <description>&lt;P&gt;Thanks Saimir,&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 11:30:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-invalidate-a-document-from-an-event-listener/m-p/316214#M3215</guid>
      <dc:creator>ioihanguren_</dc:creator>
      <dc:date>2017-06-08T11:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to invalidate a document from an event listener</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-invalidate-a-document-from-an-event-listener/m-p/316215#M3216</link>
      <description>&lt;P&gt;from listener you can do what you want with document ( invalidate, change life cycle, update properties and sure you can delete it ) all things that you can do in operation chain/seam bean you can do in event listener. It's important to chose right event  witch depends on your business. Form more details you can check nuxeo docs https&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 12:15:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-invalidate-a-document-from-an-event-listener/m-p/316215#M3216</guid>
      <dc:creator>00000001_</dc:creator>
      <dc:date>2017-06-08T12:15:45Z</dc:date>
    </item>
  </channel>
</rss>

