<?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: What is the definition of a document's parent? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-definition-of-a-document-s-parent/m-p/314239#M1240</link>
    <description>&lt;P&gt;Ok, found out what I was doing incorrectly.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;	parentDoc = session.getParentDocument(input.getParentRef()); 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;should be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;           parentDoc = session.getDocument(input.getParentRef()); 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I was getting the parent of the parent and therefore skipping over the immediate parent document.&lt;/P&gt;
&lt;P&gt;Pilot error!!!!&lt;/P&gt;</description>
    <pubDate>Fri, 20 Apr 2012 20:55:00 GMT</pubDate>
    <dc:creator>karl_harris_</dc:creator>
    <dc:date>2012-04-20T20:55:00Z</dc:date>
    <item>
      <title>What is the definition of a document's parent?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-definition-of-a-document-s-parent/m-p/314237#M1238</link>
      <description>&lt;P&gt;More specifically, how do I differentiate between the immediate parent and the parent of the parent(grandparent) when using the JAVA code below?&lt;/P&gt;
&lt;P&gt;DocumentModel x = session.getParentDocument( input.getParentRef());&lt;/P&gt;
&lt;P&gt;where session is the injected session and input is a reference to the current document's DocumentModel.&lt;/P&gt;
&lt;P&gt;If I look at x.getType() the type is the parent of the parent (grandparent) not the parent document.&lt;/P&gt;
&lt;P&gt;The documents on all three levels are folders (from bottom to top a folder, in a folder, in a folder)&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 17:55:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-definition-of-a-document-s-parent/m-p/314237#M1238</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2012-04-20T17:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: What is the definition of a document's parent?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-definition-of-a-document-s-parent/m-p/314238#M1239</link>
      <description>&lt;P&gt;Update&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 19:20:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-definition-of-a-document-s-parent/m-p/314238#M1239</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2012-04-20T19:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is the definition of a document's parent?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-definition-of-a-document-s-parent/m-p/314239#M1240</link>
      <description>&lt;P&gt;Ok, found out what I was doing incorrectly.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;	parentDoc = session.getParentDocument(input.getParentRef()); 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;should be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;           parentDoc = session.getDocument(input.getParentRef()); 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I was getting the parent of the parent and therefore skipping over the immediate parent document.&lt;/P&gt;
&lt;P&gt;Pilot error!!!!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 20:55:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/what-is-the-definition-of-a-document-s-parent/m-p/314239#M1240</guid>
      <dc:creator>karl_harris_</dc:creator>
      <dc:date>2012-04-20T20:55:00Z</dc:date>
    </item>
  </channel>
</rss>

