cancel
Showing results for 
Search instead for 
Did you mean: 

AccessControlWebService or PermissionService

sans
Champ in-the-making
Champ in-the-making
Hi,
In my project, I have to assign roles and permissions to a specifice space or node in Alfresco.
I looked into the books and online forums and came to know that you can do it using AccessControlWebService or PermissionService.
My questions:
1 What's the difference between AccessControlWebService.addACE and PermissionService.setPermission?
2 What's the difference between AccessControlWebService.setInheritPermission and PermissionService.setInheritParentPermissions?
3 Which one is better in terms of managing permissions?

Thanks
Sanjay.
1 REPLY 1

mrogers
Star Contributor
Star Contributor
One is a web service the other is a local Java Service.  That's the big difference.    

If you are local to the repo and can use the Java service then that will be the one to go for.

There will be "no difference" for similar methods, the web service will simply delegate to the Java service.

And for new development If you need a remote interface I'd recommend CMIS.