Tobias Bocanegra created JCRVLT-25:
--------------------------------------

             Summary: Implement AccessControllHandling MERGE and MERGE_PRESERVE
                 Key: JCRVLT-25
                 URL: https://issues.apache.org/jira/browse/JCRVLT-25
             Project: Jackrabbit FileVault
          Issue Type: Improvement
            Reporter: Tobias Bocanegra


The special access control handling MERGE and MERGE_PRESERVE are not 
implemented yet. suggest to implement as follows:

{code}
   /**
     * 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,

{code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to