cancel
Showing results for 
Search instead for 
Did you mean: 

Development Custom Roles by SDK Alfresco 7.1

marcog
Confirmed Champ
Confirmed Champ

Good afternoon everyone.

I'm creating custom "roles" using the SDK to generate AMP's.

These new roles are custom permissions.

I managed to create using the customPermissionsDefinitions.xml file for folders and nodes.

But when I create a Site these roles are not displayed in the Site's internal folders. Then I saw that I need a customSitesPermisionDefinitions.xml file, but when creating it inside the bootstrap with beans it is not displayed inside the Share.

Is there an example in the Community that I could follow, creating roles for folders and for folders within Sites?

Inside my boostrap-context.xml I have:
<bean id="permission-custom-platform.permissionDefinition" parent="permissionModelBootstrap">
<property name="models">
<list>
<value>alfresco/module/${project.artifactId}/model/customPermissionDefinitions.xml</value>
<value>alfresco/module/${project.artifactId}/model/customSitePermissionDefinitions.xml</value>
</list>
</property>
</bean>

Inside customSitePermissionDefinitions.xml I have the following description:
<namespaces>
<namespace uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
<namespace uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
<namespace uri="http://www.alfresco.org/model/site/1.0" prefix="st"/>
</namespaces>

<permissionSet type="st:site" expose="selected" >

Can you help me please.

0 REPLIES 0