<?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: Wrapping functionality to run as system user... in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/wrapping-functionality-to-run-as-system-user/m-p/13307#M5561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is some great information and it's helping me a bit, but I'm a little confused as to how to configure my system to pick up the non-proxied nodeService.&amp;nbsp; I am writing a Java-backed action that needs to run as the system user.&amp;nbsp; I don't know where to specify the different nodeService in the configuration files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the other hand – I'd like to explore using the AuthenticationComponent as a solution, but I don't know how to get a reference to that from within an action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2009 20:03:46 GMT</pubDate>
    <dc:creator>risenhoover</dc:creator>
    <dc:date>2009-04-23T20:03:46Z</dc:date>
    <item>
      <title>Wrapping functionality to run as system user...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrapping-functionality-to-run-as-system-user/m-p/13305#M5559</link>
      <description>Hello,I was wondering if there is a way to wrap the execution of certain code so that it is run as the system user or a user with more priveledges.I am running into an issue where I would like to perform some checks, but the currently authenticated user does not have the priveledges to do so.Specifi</description>
      <pubDate>Tue, 21 Feb 2006 00:37:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrapping-functionality-to-run-as-system-user/m-p/13305#M5559</guid>
      <dc:creator>rberg</dc:creator>
      <dc:date>2006-02-21T00:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping functionality to run as system user...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrapping-functionality-to-run-as-system-user/m-p/13306#M5560</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;There are two ways to do this &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Yes, you can run as the system user if you get hold of the AuthenticationComponent. You need to keep the current user and restore the current user in a finally block.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Use a non-service bean (which will not have security checks)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This will maintain auditing etc against the current user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example there are two node service beans "nodeService" and "NodeService". The first is the internal bean, the second is the public service: the first bean wrapped with security and transactional proxies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would suggest selected use of the second approach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 13:56:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrapping-functionality-to-run-as-system-user/m-p/13306#M5560</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2006-03-16T13:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping functionality to run as system user...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrapping-functionality-to-run-as-system-user/m-p/13307#M5561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is some great information and it's helping me a bit, but I'm a little confused as to how to configure my system to pick up the non-proxied nodeService.&amp;nbsp; I am writing a Java-backed action that needs to run as the system user.&amp;nbsp; I don't know where to specify the different nodeService in the configuration files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the other hand – I'd like to explore using the AuthenticationComponent as a solution, but I don't know how to get a reference to that from within an action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 20:03:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrapping-functionality-to-run-as-system-user/m-p/13307#M5561</guid>
      <dc:creator>risenhoover</dc:creator>
      <dc:date>2009-04-23T20:03:46Z</dc:date>
    </item>
  </channel>
</rss>

