<?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: Contributor not owner to move a content  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/contributor-not-owner-to-move-a-content/m-p/5249#M2571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no way to achieve this with just Contributor privileges. Moving an item requires delete privileges on the item to move, and a Contributor by definition does not have that. If not the owner you would need to be a Site Administrator to be allowed to move an item. Given the default permission model of Alfresco there also is no way to allow a move without granting delete privileges.&lt;/P&gt;&lt;P&gt;In Java code you could technically perform a piece of an action with elevated privileges via the AuthenticationUtil.runAsSystem() utility. But that is not easily available in scripts triggered by a rule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Apr 2017 13:32:46 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2017-04-15T13:32:46Z</dc:date>
    <item>
      <title>Contributor not owner to move a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/contributor-not-owner-to-move-a-content/m-p/5248#M2570</link>
      <description>Hello,As contributor and not the owner of a content I want to move the content from folder to another folder inside a site. The manager of the site is the owner of the content.The move action is fired from a rule on a&amp;nbsp;folder created by the managerWhat is the best solution for this scenarioThanksJami</description>
      <pubDate>Thu, 13 Apr 2017 23:41:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/contributor-not-owner-to-move-a-content/m-p/5248#M2570</guid>
      <dc:creator>jamilnour</dc:creator>
      <dc:date>2017-04-13T23:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Contributor not owner to move a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/contributor-not-owner-to-move-a-content/m-p/5249#M2571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no way to achieve this with just Contributor privileges. Moving an item requires delete privileges on the item to move, and a Contributor by definition does not have that. If not the owner you would need to be a Site Administrator to be allowed to move an item. Given the default permission model of Alfresco there also is no way to allow a move without granting delete privileges.&lt;/P&gt;&lt;P&gt;In Java code you could technically perform a piece of an action with elevated privileges via the AuthenticationUtil.runAsSystem() utility. But that is not easily available in scripts triggered by a rule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2017 13:32:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/contributor-not-owner-to-move-a-content/m-p/5249#M2571</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-04-15T13:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Contributor not owner to move a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/contributor-not-owner-to-move-a-content/m-p/5250#M2572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, my idea is to create my own java actionExecuter (AdminMove) with a parameter the destination folder and perform the move of the content node with the Admin privilege using AuthenticationUtil.runAsSystem().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This AdminMove will be shown in the list of the rules action and can be called to perform a force move&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this ok?&lt;/P&gt;&lt;P&gt;Any security issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;Jamil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2017 13:59:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/contributor-not-owner-to-move-a-content/m-p/5250#M2572</guid>
      <dc:creator>jamilnour</dc:creator>
      <dc:date>2017-04-15T13:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Contributor not owner to move a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/contributor-not-owner-to-move-a-content/m-p/5251#M2573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As long as you are okay with anyone being able to move any piece of content in your repository to any folder of their choosing, there is no issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might want to add some logic in your action to check the destination so that you exclude targets such as the Data Dictionary, or maybe only allow targets that are Share sites or something like that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 20:52:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/contributor-not-owner-to-move-a-content/m-p/5251#M2573</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-04-17T20:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Contributor not owner to move a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/contributor-not-owner-to-move-a-content/m-p/5252#M2574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay great...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question please. I created the custom actionExecuter with one parameter the destinationFolder. I can see and select it in the list of rules actions.&lt;/P&gt;&lt;P&gt;My question is how to show the user the select button to choose and auto fill the destinationFolder? Right now I can see an input field which is not practical to fill by hand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jamil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 21:03:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/contributor-not-owner-to-move-a-content/m-p/5252#M2574</guid>
      <dc:creator>jamilnour</dc:creator>
      <dc:date>2017-04-17T21:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Contributor not owner to move a content</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/contributor-not-owner-to-move-a-content/m-p/5253#M2575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at this tutorial:&lt;/P&gt;&lt;P&gt;http://ecmarchitect.com/alfresco-developer-series-tutorials/actions/tutorial/tutorial.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In it, a custom action is implemented that needs a destination node&lt;/P&gt;&lt;P&gt;reference. The tutorial overrides some web scripts and client-side&lt;/P&gt;&lt;P&gt;JavaScript to implement the control.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 21:07:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/contributor-not-owner-to-move-a-content/m-p/5253#M2575</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-04-17T21:07:11Z</dc:date>
    </item>
  </channel>
</rss>

