<?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 check for recently deleted documents? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-check-for-recently-deleted-documents/m-p/322358#M9359</link>
    <description>&lt;P&gt;The event handler and associated automation chain can be written in an XML contribution without any Java code.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2016 06:19:35 GMT</pubDate>
    <dc:creator>pibou_Bouvret</dc:creator>
    <dc:date>2016-12-15T06:19:35Z</dc:date>
    <item>
      <title>How to check for recently deleted documents?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-check-for-recently-deleted-documents/m-p/322355#M9356</link>
      <description>&lt;P&gt;I have a set up which syncs content from Nuxeo to Drupal. To add content from Nuxeo to Drupal is simple, I query for recently modified Nuxeo documents. However deleting content in Drupal if it is deleted in Nuxeo is a little trickier.&lt;/P&gt;
&lt;P&gt;Currently I'm comparing against the document ids in my map table to Drupal. I query Nuxeo for documents in an list of IDs (those from the map table) and if one exists in Drupal but not the Nuxeo results it is deleted. But with over 15000 documents in Nuxeo and the query only being able to handle approx 80 ids at a time (because it is effectively a GET request with the ids in the query string), it takes a long time.&lt;/P&gt;
&lt;P&gt;Is it possible to query deleted documents while they are in the trash?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 12:01:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-check-for-recently-deleted-documents/m-p/322355#M9356</guid>
      <dc:creator>Kimberley_Masse</dc:creator>
      <dc:date>2016-12-07T12:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to check for recently deleted documents?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-check-for-recently-deleted-documents/m-p/322356#M9357</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I think you would have better results using an Event handler on &lt;CODE&gt;Document removed&lt;/CODE&gt; triggering an Automation script  with a &lt;CODE&gt;Blob.PostToURL&lt;/CODE&gt; operation POSTing to a URL on Drupal actually removing the document.&lt;/P&gt;
&lt;P&gt;Some references:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20DM-8.3/viewOperation/Blob.PostToURL"&gt;Blob.PostToURL&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://doc.nuxeo.com/nxdoc/automation-scripting/"&gt;Automation scripting doc&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://www.nuxeo.com/blog/automation-scripting-unleashes-the-power-of-nashorn-in-the-nuxeo-platform/"&gt;Automation scripting blog article&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 07 Dec 2016 13:32:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-check-for-recently-deleted-documents/m-p/322356#M9357</guid>
      <dc:creator>Pierre-Gildas_M</dc:creator>
      <dc:date>2016-12-07T13:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to check for recently deleted documents?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-check-for-recently-deleted-documents/m-p/322357#M9358</link>
      <description>&lt;P&gt;Thanks. I'm trying to avoid writing any modules for Nuxeo though, as I have little experience in java. Is there not a query I could run?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 18:37:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-check-for-recently-deleted-documents/m-p/322357#M9358</guid>
      <dc:creator>Kimberley_Mass1</dc:creator>
      <dc:date>2016-12-14T18:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to check for recently deleted documents?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-check-for-recently-deleted-documents/m-p/322358#M9359</link>
      <description>&lt;P&gt;The event handler and associated automation chain can be written in an XML contribution without any Java code.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 06:19:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-check-for-recently-deleted-documents/m-p/322358#M9359</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-12-15T06:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to check for recently deleted documents?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-check-for-recently-deleted-documents/m-p/322359#M9360</link>
      <description>&lt;P&gt;Thanks - I was able to achieve what I wanted using the query `SELECT * FROM Document WHERE ecm&lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2016 15:01:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-check-for-recently-deleted-documents/m-p/322359#M9360</guid>
      <dc:creator>Kimberley_Masse</dc:creator>
      <dc:date>2016-12-24T15:01:09Z</dc:date>
    </item>
  </channel>
</rss>

