Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-25

Implement AccessControllHandling MERGE and MERGE_PRESERVE

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1
    • Component/s: None
    • Labels:
      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,
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tripod Tobias Bocanegra
                Reporter:
                tripod Tobias Bocanegra
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: