cancel
Showing results for 
Search instead for 
Did you mean: 

Get List of roles as a list[SOLVED]

sgomez
Champ in-the-making
Champ in-the-making
Hi,

Is there a way I can get a list of all roles returned through the Javascript API or Java API? 

To clarify, the roles include Coordinator, Collaborator, Contributor, Editor, Consumer.  I would like to be able to retrieve this list(along with any other roles I've created myself).
3 REPLIES 3

sgomez
Champ in-the-making
Champ in-the-making
Found the solution.

In 3.2, I can call the permission service and retrieve all settable permissions for a node (From Java Doc API: http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/repo/security/permissions/impl/Pe...)

    Set<String> permissions = new HashSet<String>();

    permissions.addAll(serviceRegistry.getPermissionService().getSettablePermissions(nodeRef));

stegbth
Champ in-the-making
Champ in-the-making
hi,

is it possible to get this list within alfresco share?
cause neither in admin console, nor in the share-permissions it is possble to see what groups has permission to the site, until i enter one or three letters of the name.
and * for every group does not work.

best regards
thomas

sgomez
Champ in-the-making
Champ in-the-making
Hi Stegbth,

Sorry for the late reply.  Unfortunately I do not have the answer with regards to Alfresco share.  My solution is done all in a java-backed webscript. 

-Sonny