jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1443416 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/PermissionHook.java
Date Thu, 07 Feb 2013 11:18:12 GMT
Author: angela
Date: Thu Feb  7 11:18:12 2013
New Revision: 1443416

URL: http://svn.apache.org/viewvc?rev=1443416&view=rev
Log:
OAK-527: permissions (wip)

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/PermissionHook.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/PermissionHook.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/PermissionHook.java?rev=1443416&r1=1443415&r2=1443416&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/PermissionHook.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/PermissionHook.java
Thu Feb  7 11:18:12 2013
@@ -48,14 +48,17 @@ public class PermissionHook implements C
     @Nonnull
     @Override
     public NodeState processCommit(final NodeState before, NodeState after) throws CommitFailedException
{
-        NodeBuilder rootBuilder = after.builder();
-
-        String workspaceName = "default"; // TODO
-        NodeBuilder permissionRoot = rootBuilder.child(NodeTypeConstants.JCR_SYSTEM).child(REP_PERMISSION_STORE).child(workspaceName);
-        ReadOnlyNodeTypeManager ntMgr = ReadOnlyNodeTypeManager.getInstance(before);
-
-        after.compareAgainstBaseState(before, new Diff(new Node(rootBuilder), permissionRoot,
ntMgr));
-        return rootBuilder.getNodeState();
+        // TODO OAK-526: add implementation
+        return after;
+//
+//        NodeBuilder rootBuilder = after.builder();
+//
+//        String workspaceName = "default"; // TODO
+//        NodeBuilder permissionRoot = rootBuilder.child(NodeTypeConstants.JCR_SYSTEM).child(REP_PERMISSION_STORE).child(workspaceName);
+//        ReadOnlyNodeTypeManager ntMgr = ReadOnlyNodeTypeManager.getInstance(before);
+//
+//        after.compareAgainstBaseState(before, new Diff(new Node(rootBuilder), permissionRoot,
ntMgr));
+//        return rootBuilder.getNodeState();
     }
 
     private static class Diff implements NodeStateDiff {



Mime
View raw message