cancel
Showing results for 
Search instead for 
Did you mean: 

Adding new permission Group, in an Alfresco module?

ajmas
Champ in-the-making
Champ in-the-making
I am developing an add-on module for Alfresco and I would like to add a new Permissions group, though I would like to avoid having to modify the permissionDefintions.xml file in the vanilla Alfresco installation. What I am wanting to do is add an 'Approver' permissions group that would include both contributor and editor, but include a 'approveContent' permission. This group should then be available in the returned list when I do permissionService.getSettablePermissions ( NodeRef ), where the NodeRef corresponds to a folder node.

Can anyone suggest the best way to go about this?

In the meantime I did try adding my new permissionGroup in the permissionSet for "cmSmiley Surprisedbject" and adding the permissionsGroup to the permissionSet for "cm:folder", but that did seem to do anything visible. I even tried adding a permissionSet corresponding to an aspect I defined, but that ended throwing a NulPointerException. I also looked at the following Wiki page, but I am still a little confused:

http://wiki.alfresco.com/wiki/Security_and_Authentication#How_to_add_your_own_type_or_aspect.2C_assi...….
1 REPLY 1

ajmas
Champ in-the-making
Champ in-the-making
Replying to my own question.

I found the answer in the "Professional Alfresco" book (page 118). I can create my own permission file adding the new permissionSet to associate with my role and then defining the permissionGroups and permissions in there. After that it is a question of creating a spring bean with parent "permissionModelBootstrap" and a model property pointing to my definitions file.