jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r788013 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization: acl/ACLProvider.java principalbased/ACLProvider.java
Date Wed, 24 Jun 2009 13:12:57 GMT
Author: angela
Date: Wed Jun 24 13:12:56 2009
New Revision: 788013

URL: http://svn.apache.org/viewvc?rev=788013&view=rev
Log:
JCR-1104 : JSR 283 support

- handle new Event type


Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/acl/ACLProvider.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/principalbased/ACLProvider.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/acl/ACLProvider.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/acl/ACLProvider.java?rev=788013&r1=788012&r2=788013&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/acl/ACLProvider.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/acl/ACLProvider.java
Wed Jun 24 13:12:56 2009
@@ -596,6 +596,10 @@
                                 }
                             }
                             break;
+                        case Event.NODE_MOVED:
+                            // protected ac nodes cannot be moved around
+                            // -> nothing to do TODO check again
+                            break;
                         default:
                             // illegal event-type: should never occur. ignore
                     }

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/principalbased/ACLProvider.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/principalbased/ACLProvider.java?rev=788013&r1=788012&r2=788013&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/principalbased/ACLProvider.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/principalbased/ACLProvider.java
Wed Jun 24 13:12:56 2009
@@ -321,6 +321,7 @@
                     switch (ev.getType()) {
                         case Event.NODE_ADDED:
                         case Event.NODE_REMOVED:
+                        case Event.NODE_MOVED:
                             reload = acPaths.contains(Text.getRelativeParent(path, 2));
                             break;
                         case Event.PROPERTY_ADDED:
@@ -328,6 +329,7 @@
                         case Event.PROPERTY_REMOVED:
                             reload = acPaths.contains(Text.getRelativeParent(path, 3));
                             break;
+
                         default:
                             // illegal event-type: should never occur. ignore
                             break;



Mime
View raw message