AnsweredAssumed Answered

Adding new permission Group, in an Alfresco module?

Question asked by ajmas on Jan 27, 2011
Latest reply on Feb 1, 2011 by ajmas
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 "cm:object" 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_assign_permissions_for_it.2C_configure_it_and_secure_a_service_that_uses_it_….

Outcomes