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 "cmbject" 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:
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.