<?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 audit query in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/audit-query/m-p/327096#M14097</link>
    <description>&lt;P&gt;I would like to clone some audit  query code in the &lt;CODE&gt;org.nuxeo.ecm.platform.audit&lt;/CODE&gt; package in the audit core test jar. I see:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;...
DocumentModel searchDoc = session.createDocumentModel("File");
...
searchDoc = session.createDocument(searchDoc);
pp.setSearchDocument(searchDoc);
...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Looking at the page provider code it does not appear to be necessary to save the search document to the repository before setting it in the page provider, and my cloned code (so far) seems to work correctly when I &lt;STRONG&gt;don't&lt;/STRONG&gt; save the document. So - two questions: 1) am I ok to dispense with saving the search document to the repository? And 2) if not - is there a recommended approach to remove these after use?
Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 01 Mar 2018 13:46:42 GMT</pubDate>
    <dc:creator>Eric_Ace</dc:creator>
    <dc:date>2018-03-01T13:46:42Z</dc:date>
    <item>
      <title>audit query</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/audit-query/m-p/327096#M14097</link>
      <description>&lt;P&gt;I would like to clone some audit  query code in the &lt;CODE&gt;org.nuxeo.ecm.platform.audit&lt;/CODE&gt; package in the audit core test jar. I see:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;...
DocumentModel searchDoc = session.createDocumentModel("File");
...
searchDoc = session.createDocument(searchDoc);
pp.setSearchDocument(searchDoc);
...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Looking at the page provider code it does not appear to be necessary to save the search document to the repository before setting it in the page provider, and my cloned code (so far) seems to work correctly when I &lt;STRONG&gt;don't&lt;/STRONG&gt; save the document. So - two questions: 1) am I ok to dispense with saving the search document to the repository? And 2) if not - is there a recommended approach to remove these after use?
Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 13:46:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/audit-query/m-p/327096#M14097</guid>
      <dc:creator>Eric_Ace</dc:creator>
      <dc:date>2018-03-01T13:46:42Z</dc:date>
    </item>
  </channel>
</rss>

