Reputation: 175
I'm trying to use the document methods addToFolder
and removeFromFolder
in Alfresco via Chemistry CMIS Implementation with java.
I want to be accessible a document from multiples user spaces but I don't want to copy each one to each space. The document is generated bay a user and this user must decide if the document must be deleted, moved, modified, etc. But other users with read access to this space must read from its default spaces this documents.
So, from the other users I execute myDocument.addToFolder(myNewUserSpace)
and this runs ok and I can access to it without problem. It is good.
But if due to some reason, I want to disassociate this myNewUserSpace in myDocument (using de myNewUserSpace proprietary user, not the myDocument user), I get an error due to write permissions on myDocument.
I don't want that every user that can execute addToFolder
, gets write permissions too.
Is possible to do it without grants write permission on the primary user space?
Greetings.
Upvotes: 0
Views: 280
Reputation: 4079
permissions can be inherited from a folder. Afaik addToFolder adds your spaceB as secondaryParent of myDocument, but permissions are only inherited from spaceA - the primaryParent of myDocument.
Upvotes: 1