stop permissions inheritance with cmis

cancel
Showing results for 
Search instead for 
Did you mean: 
fatma19
Active Member II

stop permissions inheritance with cmis

I am currently using cmis to communicate to alfresco,and i want to create folders with cmis but i don't like those folders to inherite permissions so how can i do that with cmis? 

By the way my app is written in java.
Thank you in advance

3 Replies
cesarista
Customer

Re: stop permissions inheritance with cmis

Hi:

As far I know, CMIS provides a very basic management of Alfresco permissions (cmis:read and cmis:write). But surely, you can set up a content rule that may be triggered from CMIS for disabling inheritance in case of folder creation.

Regards.

--C.

fatma19
Active Member II

Re: stop permissions inheritance with cmis

ok do you have an idea how to do that with the alfresco api ? 

cesarista
Customer

Re: stop permissions inheritance with cmis

Yes, first create a content rule in rootPath folder of your application in the repository. This rule will apply over all content created of type Folder (recursively) and runs a JS-API script placed in /Data Dictionary/Scripts. The script should do something like this:

setInheritsPermissions | Alfresco Documentation 

And then you should create CMIS folders in the way you are doing.

Regards.

--C.