06-21-2012 02:22 AM
06-21-2012 04:02 AM
07-05-2012 09:42 AM
Acl fldrACL = sourceFldr.getAcl();
List<Ace> srcACEs = fldrACL.getAces();
Acl curACL = newfolder.getAcl();
List<Ace> curACEs = curACL.getAces();
newfolder.applyAcl(srcACEs, curACEs, AclPropagation.PROPAGATE);
07-06-2012 03:41 PM
07-06-2012 07:19 PM
If you copy an ACL from node A and apply it to node B in that way you describe - it should copy all ACEs directly assigned to A (not those inherited) to node B.Then the applyAcl method will not work as described in the Apache Chemistry documentation, right? In the code, I'm requesting all the ACEs on the "target folder", and putting them in the "Remove ACEs" parameter, and adding the ACEs I picked-off of the "source folder".
Node B will have the ACEs directly set on A and those that it inherits from its primary parent (if it inherts them).
Nodes that inherit ACEs from B will pick up these changes.
07-10-2012 03:45 PM
09-11-2013 03:48 PM
09-11-2013 09:06 PM
Tags
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.