<?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 Custom site roles/permissions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-site-roles-permissions/m-p/251810#M204940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to create new roles in Alfresco share (or rename the existing ones). As a starting point I used the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Custom_Permissions_in_Share" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Custom_Permissions_in_Share&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://keytocontent.blogspot.de/2011/04/alfresco-share-permissionsroles-part-ii.html" rel="nofollow noopener noreferrer"&gt;http://keytocontent.blogspot.de/2011/04/alfresco-share-permissionsroles-part-ii.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to rename the existing roles (including the SiteManager), that would make things much easier for me. But I can't find the place, where the names are stored and read from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that fails, is it possible to delete or hide the existing roles, so that only the new ones are shown?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionaly, the SiteManager/ Manager role can't be reproduced by just using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;permissionGroup name="CustomSiteManager" allowFullControl="true" expose="true" /&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;The new role doesn't have all permissions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Mar 2012 09:39:39 GMT</pubDate>
    <dc:creator>strecki</dc:creator>
    <dc:date>2012-03-30T09:39:39Z</dc:date>
    <item>
      <title>Custom site roles/permissions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-site-roles-permissions/m-p/251810#M204940</link>
      <description>I want to create new roles in Alfresco share (or rename the existing ones). As a starting point I used the following:http://wiki.alfresco.com/wiki/Custom_Permissions_in_Sharehttp://keytocontent.blogspot.de/2011/04/alfresco-share-permissionsroles-part-ii.html1.Is it possible to rename the existing ro</description>
      <pubDate>Fri, 30 Mar 2012 09:39:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-site-roles-permissions/m-p/251810#M204940</guid>
      <dc:creator>strecki</dc:creator>
      <dc:date>2012-03-30T09:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom site roles/permissions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-site-roles-permissions/m-p/251811#M204941</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;Yes its possible to rename the roles. Share has 2 general msg property files called slingshot.properties &amp;amp; common.properties files that contain all global msg keys that could be used by multiple components. However individual components (aka webscripts) can also specify msg keys in the some-component.get.properties. Therefor you will need to override the msg keys in slingshot.properties AND the .get.properties files for the components that have defined their own msg keys for the roles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Start by creating a new spring mvc context file that will make sure an additional .properties file is loaded that will override shares msg keys. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/alfresco/web-extension/custom-slingshot-acme-context.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&amp;lt;!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' '&lt;A href="http://www.springframework.org/dtd/spring-beans-2.0.dtd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/dtd/spring-beans-2.0.dtd&lt;/A&gt;'&amp;gt;&lt;BR /&gt;&amp;lt;beans&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="cloud.custom.resources" class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="resourceBundles"&amp;gt;&lt;BR /&gt;&amp;nbsp;&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;value&amp;gt;alfresco.messages.acme&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;nbsp;&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;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/beans&amp;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;BR /&gt;&lt;SPAN&gt;2. Then create the actual .properties who's keys will override the ones in slingshot.properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/alfresco/messages/acme.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;## Rename Roles&lt;BR /&gt;role.SiteManager=Acme Manager&lt;BR /&gt;role.SiteCollaborator=Acme Collaborator&lt;BR /&gt;role.SiteContributor=Acme Contributor&lt;BR /&gt;role.SiteConsumer=Acme Consumer&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;3. When it comes to overriding the msg keys for a component a lot of improvements have been done in Alfresco 4.0 in which you (rather than overriding the entire file) can override only some of the msg keys (and also add new ones of course). To see how its done in Alfresco 4.0 see this blog post: &lt;/SPAN&gt;&lt;A href="http://blogs.alfresco.com/wp/ddraper/2011/08/03/customizing-alfresco-share-i18n-properties/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/ddraper/2011/08/03/customizing-alfresco-share-i18n-properties/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In previous versions of Alfresco you must however override each component's .get.properties file. The file is overriden by placing another file with the same name inside the web-extension directory. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I.e. to override…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/document-details/document-metadata.get.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…copy the original to the following location and modify the keys as you see fit…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tomcat/shared/classes/alfresco/web-extension/site-webscripts/org/alfresco/components/document-details/document-metadata.get.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To find which files to change use Surf Bug as described in the blog post I linked to above OR do a search in tomcat/webapps/share for the keys you want to change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 14:37:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-site-roles-permissions/m-p/251811#M204941</guid>
      <dc:creator>erikwinlof</dc:creator>
      <dc:date>2012-03-30T14:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom site roles/permissions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-site-roles-permissions/m-p/251812#M204942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much, that helped me a lot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 16:02:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-site-roles-permissions/m-p/251812#M204942</guid>
      <dc:creator>strecki</dc:creator>
      <dc:date>2012-03-30T16:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom site roles/permissions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-site-roles-permissions/m-p/251813#M204943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have two web-extension C:\Alfresco\tomcat\shared\classes\alfresco and in C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco In which folder should I us&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:08:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-site-roles-permissions/m-p/251813#M204943</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-03-05T12:08:06Z</dc:date>
    </item>
  </channel>
</rss>

