<?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 to extend (customize) public-services-security-context.x in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-customize-public-services-security-context-x/m-p/251110#M204240</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;I implemented my own DynamicAuthority and put classes to the AMP file (inspired by &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?t=17436#p60903" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?t=17436#p60903&lt;/A&gt;&lt;SPAN&gt;). Now I need to customize public-services-security-context.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. adding bean definition of my new Authority class. I can put this definition to the new *-context.xml (for ex. extended-security-context.xml) and then put this file to the AMP. I think it's OK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. insert this bean to the list of used dynamic authorities:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;bean id="permissionServiceImpl" class="org.alfresco.repo.security.permissions.impl.PermissionServiceImpl"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="nodeService"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ref bean="mtAwareNodeService" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="dynamicAuthorities"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;list&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ref bean="ownerDynamicAuthority" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ref bean="lockOwnerDynamicAuthority" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– my new dynamic authorities –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ref bean="myDynamicAuthority" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/list&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&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;/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;SPAN&gt;So it seems I need to edit original public-services-security-context.xml and add appropriate line. But is it a preferred way? Can I put modified file to the AMP for easy installation? Or is there better way to add my bean to the dynamicAuthorities list?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to have solution as compact as possible (due to easy future installation and support). Ideally, all together in the AMP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any suggestion&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2011 23:00:56 GMT</pubDate>
    <dc:creator>tomasp</dc:creator>
    <dc:date>2011-10-12T23:00:56Z</dc:date>
    <item>
      <title>How to extend (customize) public-services-security-context.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-customize-public-services-security-context-x/m-p/251110#M204240</link>
      <description>Hi,I implemented my own DynamicAuthority and put classes to the AMP file (inspired by https://forums.alfresco.com/en/viewtopic.php?t=17436#p60903). Now I need to customize public-services-security-context.xml:1. adding bean definition of my new Authority class. I can put this definition to the new *</description>
      <pubDate>Wed, 12 Oct 2011 23:00:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-customize-public-services-security-context-x/m-p/251110#M204240</guid>
      <dc:creator>tomasp</dc:creator>
      <dc:date>2011-10-12T23:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to extend (customize) public-services-security-context.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-customize-public-services-security-context-x/m-p/251111#M204241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would be very interested in knowing if this file can be customised through the proper extension/customisation mechanism.&amp;nbsp; I will have a tough time with my client customising the original files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Colin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 12:49:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-customize-public-services-security-context-x/m-p/251111#M204241</guid>
      <dc:creator>colindstephenso</dc:creator>
      <dc:date>2012-07-12T12:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to extend (customize) public-services-security-context.x</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-customize-public-services-security-context-x/m-p/251112#M204242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to fix something related with this on this thread &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/forum/installation-upgrades-configuration-integration/configuration/how-override-siteservicesecurity" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/forum/installation-upgrades-configuration-integration/configuration/how-override-siteservicesecurity&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please, let me know if you were able to achieve what you were trying to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See ya&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 18:18:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-extend-customize-public-services-security-context-x/m-p/251112#M204242</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2013-10-04T18:18:00Z</dc:date>
    </item>
  </channel>
</rss>

