<?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 Method-level security definition in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/method-level-security-definition/m-p/308577#M261707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 12px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 12px;"&gt;public-services-security-context.xml has the method-level security definition. For example,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 12px;"&gt;org.alfresco.service.cmr.repository.NodeService.addAspect=ACL_NODE.0.sys:base.WriteProperties,ACL_ITEM.0.cm&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 12px;"&gt;&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;wnable.TakeOwnership&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 12px;"&gt;Question 1 - what does "ACL_ITEM.0.cm&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 12px;"&gt;&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;wnable.TakeOwnership" mean? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 12px;"&gt;Question 2 - If I want to grant permission to members of a custom group, can I just append it like below?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 12px;"&gt;org.alfresco.service.cmr.repository.NodeService.addAspect=ACL_NODE.0.sys:base.WriteProperties,ACL_ITEM.0.cm&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 12px;"&gt;&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;wnable.TakeOwnership,ACL_METHOD.GROUP_MY_COMPANY_ACCOUNTING&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 12px;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2016 19:28:40 GMT</pubDate>
    <dc:creator>zhihailiu</dc:creator>
    <dc:date>2016-09-21T19:28:40Z</dc:date>
    <item>
      <title>Method-level security definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/method-level-security-definition/m-p/308577#M261707</link>
      <description>Hi,public-services-security-context.xml has the method-level security definition. For example,&amp;nbsp;org.alfresco.service.cmr.repository.NodeService.addAspect=ACL_NODE.0.sys:base.WriteProperties,ACL_ITEM.0.cm&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;wnable.TakeOwnershipQuestion 1 - what does "ACL_ITEM.0.cm&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;wnable.TakeOwnership" mean? Question</description>
      <pubDate>Wed, 21 Sep 2016 19:28:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/method-level-security-definition/m-p/308577#M261707</guid>
      <dc:creator>zhihailiu</dc:creator>
      <dc:date>2016-09-21T19:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Method-level security definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/method-level-security-definition/m-p/308578#M261708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The public-services-security-context.xml file is NOT where you grant permissions to anyone. This defines the service level checks that will be performed for ANY invocation on ANY node / item passed as a parameter. The way you have outlined in your 2nd question actually RESTRICTS the operation to only members of the GROUP_MY_COMPANY_ACCOUNT. No one else would be allowed to add an aspect to a node, which would effectively break your Alfresco system (virtually everything has something to do with aspects under the hood).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As to your 1st question. ACL_ITEM is a special variant of ACL_NODE. This operation requires that a method has a very specific signature (composed of NodeRef and Map or QName). Additionally it will only pass judgement if the operation is used to change the owner. If no owner change is attempted the check will abstain (yield neither a positive nor negative permission check result).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a general rule, you should (almost) NEVER change anything permission related in *-context.xml files. You can define NEW permissions via a permissionDefinitions.xml that is referenced from a *-context.xml, but that is not a very common use case. Granting permission is almost ALWAYS done exclusively via the Share UI, Java or JavaScript APIs (PermissionService or ScriptNode.setPermission).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 19:43:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/method-level-security-definition/m-p/308578#M261708</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-09-21T19:43:41Z</dc:date>
    </item>
  </channel>
</rss>

