cancel
Showing results for 
Search instead for 
Did you mean: 

Get AllowableActions from Java WebScript

dodjavola
Champ in-the-making
Champ in-the-making

Hello everyone. I am currently working on Java web script that should return some node metadata. One of the requirements is to get AllowableActions on that node, by the user which is logged in. AllowableActions needs to look like the ones you get through CMIS (something like "canDeleteFolder", "canCheckOut", etc). Is it possible to do that from WebScript? Going though to Alfresco source code, I see that it's done by PermissionActionEvaluator, but I am not sure how to get to it through ServiceRegistry.
Please, any help would be appreciated.

Thanks in advance…
1 REPLY 1

parashiftaustra
Confirmed Champ
Confirmed Champ
Have a look at the Permission Service method getPermissions:

http://dev.alfresco.com/resource/docs/java/org/alfresco/service/cmr/security/PermissionService.html

This should return a set of AccessPermission classes which you should be able to iterate through.