<?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: Automatic creation of custom site group in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/automatic-creation-of-custom-site-group/m-p/40459#M16958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I will try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my custom group&amp;nbsp;will look like: site_&lt;STRONG&gt;{site id}&lt;/STRONG&gt;_MyCustomRole and I will add it to group&amp;nbsp;&lt;SPAN&gt;site_&lt;/SPAN&gt;&lt;STRONG&gt;{site id}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Mar 2017 13:16:08 GMT</pubDate>
    <dc:creator>zxdev777</dc:creator>
    <dc:date>2017-03-08T13:16:08Z</dc:date>
    <item>
      <title>Automatic creation of custom site group</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/automatic-creation-of-custom-site-group/m-p/40457#M16956</link>
      <description>Hi all,Is it possible to define additional custom site group ? So always when new site is created additional group {site identifier}_SpecialGroup&amp;nbsp;will be also created.Let's say my requirement is to have one folder in site, where just users with this special role should have access.I don't want to cr</description>
      <pubDate>Wed, 08 Mar 2017 08:00:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/automatic-creation-of-custom-site-group/m-p/40457#M16956</guid>
      <dc:creator>zxdev777</dc:creator>
      <dc:date>2017-03-08T08:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic creation of custom site group</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/automatic-creation-of-custom-site-group/m-p/40458#M16957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should create a class like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;public class SiteCreateEvent implements NodeServicePolicies.OnCreateNodePolicy {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private PolicyComponent policyComponent;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void init() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.policyComponent.bindClassBehaviour(OnCreateNodePolicy.QNAME, SiteModel.TYPE_SITE, new JavaBehaviour(&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; this, "onCreateNode", NotificationFrequency.TRANSACTION_COMMIT));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void onCreateNode(ChildAssociationRef childAssocRef) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Your code to create the group&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void setPolicyComponent(PolicyComponent policyComponent) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.policyComponent = policyComponent;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 08:44:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/automatic-creation-of-custom-site-group/m-p/40458#M16957</guid>
      <dc:creator>ruudg</dc:creator>
      <dc:date>2017-03-08T08:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic creation of custom site group</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/automatic-creation-of-custom-site-group/m-p/40459#M16958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I will try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my custom group&amp;nbsp;will look like: site_&lt;STRONG&gt;{site id}&lt;/STRONG&gt;_MyCustomRole and I will add it to group&amp;nbsp;&lt;SPAN&gt;site_&lt;/SPAN&gt;&lt;STRONG&gt;{site id}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 13:16:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/automatic-creation-of-custom-site-group/m-p/40459#M16958</guid>
      <dc:creator>zxdev777</dc:creator>
      <dc:date>2017-03-08T13:16:08Z</dc:date>
    </item>
  </channel>
</rss>

