10-02-2013 12:01 PM
I would like to know the list of values allowed in the parameter "permission" of the Document.setACE function. In the same function what are the values allowed in the acl parameter ?
I tried permission=READ, acl=local, user=vieville and the ui displays "label.security.permission.rEAD" in the field "Permission accordée"
Thank you for your help
11-11-2015 07:49 AM
Here is the snippet for setting permissions locally:
HttpAutomationClient autoclient = new HttpAutomationClient(“http://localhost:8080/nuxeo/site/automation”); Session session = autoclient.getSession(“user”, “password”); DocumentService documentService = new DocumentService(session); Document root = (Document) session.newRequest(“Document.Fetch”).set(“value”, /docPath/docName).execute(); documentService.setPermission(root, userName/groupName, “Read”);
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.