<?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 how can make the customized java node running under the admi in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-can-make-the-customized-java-node-running-under-the-admi/m-p/273580#M226710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;we have defined a custom process in alfresco.when the process starts,the process instance will cross the custom java node and create some files in alfresco repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when we use another account(not admin) to start the process,the java node will throw an exception and try to tell me do not have an exception and try to tell me do not have enough power to execute some api.how can make the customized java node running under the admin authority instead of the current process creator&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2012 14:12:44 GMT</pubDate>
    <dc:creator>forrest43</dc:creator>
    <dc:date>2012-10-18T14:12:44Z</dc:date>
    <item>
      <title>how can make the customized java node running under the admi</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-make-the-customized-java-node-running-under-the-admi/m-p/273580#M226710</link>
      <description>we have defined a custom process in alfresco.when the process starts,the process instance will cross the custom java node and create some files in alfresco repository.when we use another account(not admin) to start the process,the java node will throw an exception and try to tell me do not have an e</description>
      <pubDate>Thu, 18 Oct 2012 14:12:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-make-the-customized-java-node-running-under-the-admi/m-p/273580#M226710</guid>
      <dc:creator>forrest43</dc:creator>
      <dc:date>2012-10-18T14:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: how can make the customized java node running under the admi</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-make-the-customized-java-node-running-under-the-admi/m-p/273581#M226711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you put this around your code it will run as the admin user. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;BR /&gt;AuthenticationUtil.runAs(new AuthenticationUtil.RunAsWork&amp;lt;Object&amp;gt;() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Object doWork() throws Exception {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Your code goes here&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return null;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}, "admin");&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 19:35:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-make-the-customized-java-node-running-under-the-admi/m-p/273581#M226711</guid>
      <dc:creator>dantuffery</dc:creator>
      <dc:date>2012-10-22T19:35:37Z</dc:date>
    </item>
  </channel>
</rss>

