As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Acl fldrACL = sourceFldr.getAcl(); List<Ace> srcACEs = fldrACL.getAces(); Acl curACL = newfolder.getAcl(); List<Ace> curACEs = curACL.getAces(); newfolder.applyAcl(srcACEs, curACEs, AclPropagation.PROPAGATE);
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.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.