<?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 hasPermission() for other than the current user? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/haspermission-for-other-than-the-current-user/m-p/144281#M100900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My application needs a way to call &lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/security/PermissionService.html" rel="nofollow noopener noreferrer"&gt;hasPermission(nodeRef, perm)&lt;/A&gt;&lt;SPAN&gt; for a &lt;/SPAN&gt;&lt;STRONG&gt;different&lt;/STRONG&gt;&lt;SPAN&gt; user (i.e., not the user who is currently authenticated). I need to do lots of such calls.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As authentication is bound to the current thread, the only way I see to achieve this is to create a new thread, in it log in as the different user and then use hasPermission() from within that thread Ã¢â‚¬â€œ with some sort of producer-consumer code to get the information to the main thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is very inefficient. Is there another way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kaspar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2007 11:48:49 GMT</pubDate>
    <dc:creator>hbf</dc:creator>
    <dc:date>2007-12-07T11:48:49Z</dc:date>
    <item>
      <title>hasPermission() for other than the current user?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/haspermission-for-other-than-the-current-user/m-p/144281#M100900</link>
      <description>Hi,My application needs a way to call hasPermission(nodeRef, perm) for a different user (i.e., not the user who is currently authenticated). I need to do lots of such calls.As authentication is bound to the current thread, the only way I see to achieve this is to create a new thread, in it log in as</description>
      <pubDate>Fri, 07 Dec 2007 11:48:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/haspermission-for-other-than-the-current-user/m-p/144281#M100900</guid>
      <dc:creator>hbf</dc:creator>
      <dc:date>2007-12-07T11:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: hasPermission() for other than the current user?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/haspermission-for-other-than-the-current-user/m-p/144282#M100901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://forums.alfresco.com/viewtopic.php?t=1798" rel="nofollow noopener noreferrer"&gt;Another thread&lt;/A&gt;&lt;SPAN&gt; is discussing this, currently.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I should have checked before, sorry.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 11:51:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/haspermission-for-other-than-the-current-user/m-p/144282#M100901</guid>
      <dc:creator>hbf</dc:creator>
      <dc:date>2007-12-07T11:51:18Z</dc:date>
    </item>
  </channel>
</rss>

