Hi, Check the DotCMIS interfaces. There is a CreateDocument() method that can handle ACE lists and an ApplyAcl() methods to change the ACL afterwards. At some point you have to read the CMIS specification [1] to understand how it works.
- Florian [1] http://docs.oasis-open.org/cmis/CMIS/v1.0/cs01/cmis-spec-v1.0.html#_Toc243905406 > Hi, to upload a file via dotCMIS on a Sharepoint 2010 system is working > fine. > Im just not sure how to handle the stuff with the permissions. > > Lets say Im uploading a simple file like: > > *IFolder folder = session.GetRootFolder(); > > IDictionary<string, object> properties = new Dictionary<string, object>(); > > properties[PropertyIds.Name] = "mydoc"; > properties[PropertyIds.ObjectTypeId] = "cmis:document"; > > > contentStream.FileName = "mydoc.txt"; > contentStream.MimeType = "text/plain"; > contentStream.Length = content.Length; > contentStream.Stream = new MemoryStream(content); > > IDocument doc = folder.CreateDocument(properties, contentStream, null);* > * > * > Is it possible to add somehow new users with read/write access or > change/delete some of them? > > I saw there is *BasicPermission.Read*, *BasicPermission.Write* and so on. > Im sure I have to do something with this stuff, but how? (do I have to add > them as property? how?) > Any Ideas? Thank you >
