<?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: Getting document title when you don&amp;apos;t have permission in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/getting-document-title-when-you-don-apos-t-have-permission/m-p/314816#M1817</link>
    <description>&lt;P&gt;Thank you Florent,but i found another way using UnrestrictedSessionRunner.I think this is better because i have to iterate through the parents of a document too.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2017 16:21:43 GMT</pubDate>
    <dc:creator>Nuxeo_User</dc:creator>
    <dc:date>2017-11-17T16:21:43Z</dc:date>
    <item>
      <title>Getting document title when you don&amp;apos;t have permission</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/getting-document-title-when-you-don-apos-t-have-permission/m-p/314813#M1814</link>
      <description>&lt;P&gt;Hi people :)
I need to take the title of a document using java code even when the user doesn't have permission to see it.Can someone tell me if this is possible?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 11:00:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/getting-document-title-when-you-don-apos-t-have-permission/m-p/314813#M1814</guid>
      <dc:creator>Nuxeo_User</dc:creator>
      <dc:date>2017-11-16T11:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getting document title when you don&amp;apos;t have permission</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/getting-document-title-when-you-don-apos-t-have-permission/m-p/314814#M1815</link>
      <description>&lt;P&gt;Use a privileged session:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;DocumentRef ref = doc.getRef();
String title = CoreInstance.doPrivileged(doc.getCoreSession(), 
    (CoreSession privilegedSession) -&amp;gt; (String) privilegedSession.getDocument(ref).getPropertyValue("dc:title")
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Nov 2017 13:19:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/getting-document-title-when-you-don-apos-t-have-permission/m-p/314814#M1815</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2017-11-17T13:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting document title when you don&amp;apos;t have permission</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/getting-document-title-when-you-don-apos-t-have-permission/m-p/314815#M1816</link>
      <description>&lt;P&gt;It's equivalent but UnrestrictedSessionRunner is more verbose.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 16:21:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/getting-document-title-when-you-don-apos-t-have-permission/m-p/314815#M1816</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2017-11-17T16:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting document title when you don&amp;apos;t have permission</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/getting-document-title-when-you-don-apos-t-have-permission/m-p/314816#M1817</link>
      <description>&lt;P&gt;Thank you Florent,but i found another way using UnrestrictedSessionRunner.I think this is better because i have to iterate through the parents of a document too.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 16:21:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/getting-document-title-when-you-don-apos-t-have-permission/m-p/314816#M1817</guid>
      <dc:creator>Nuxeo_User</dc:creator>
      <dc:date>2017-11-17T16:21:43Z</dc:date>
    </item>
  </channel>
</rss>

