Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The special access control handling MERGE and MERGE_PRESERVE are not implemented yet. suggest to implement as follows:
/** * Merge access control provided with the package with the one in the * content by replacing the access control entries of corresponding * principals (i.e. package first). It never alters access control entries * of principals not present in the package. * <p/> * Example:<br/> * * Content ACL: * <pre> * everyone, deny, jcr:all * bob, allow, jcr:read * bob, allow, jcr:write * </pre> * * Package ACL: * <pre> * bob, deny, jcr:all * alice, allow, jcr:read * </pre> * * Result ACL: * <pre> * everyone, deny, jcr:all * bob, deny, jcr:all * alice, allow, jcr:read * </pre> */ MERGE, /** * Merge access control in the content with the one provided with the * package by adding the access control entries of principals not present in the * content (i.e. content first). It never alters access control entries already * existing in the content. * * <p/> * Example:<br/> * * Content ACL: * <pre> * everyone, deny, jcr:all * bob, allow, jcr:read * bob, allow, jcr:write * </pre> * * Package ACL: * <pre> * bob, deny, jcr:all * alice, allow, jcr:read * </pre> * * Result ACL: * <pre> * everyone, deny, jcr:all * bob, allow, jcr:read * bob, allow, jcr:write * alice, allow, jcr:read * </pre> */ MERGE_PRESERVE,