cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS ACL's

smcardle
Champ in-the-making
Champ in-the-making
Hi All.

I have an OpenCMIS client that traverses the Alfresco Folder structure and for each Folder it needs to check to see if the current user has WRITE permission to that Folder.

In my Alfresco Repository (As Admin) I have used Manage Users on a Space and set my normal user to Consumer (No Write).

However, when I get this Folder and call

Acl acl = obj.getAcl();


(Where obj is the Folder I an interested in) the acl is null ?????

This means that I cannot then get call
List<Ace> aces = acl.getAces();
to get the list of aces to check to see if the user has actually got write permission.

Is the problem that OpenCMIS does not return the ACL's? or is the problem Alfresco does not support them in CMIS?

Regards

Steve
1 REPLY 1

smcardle
Champ in-the-making
Champ in-the-making
It turns out that OpenCMIS has a method

   
Acl acl = session.getAcl(obj, true);


If you want to get the Acl's for an object as the obj.getAcl() doesn't return them

Steve