jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1421965 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/AccessControlValidator.java
Date Fri, 14 Dec 2012 16:26:05 GMT
Author: angela
Date: Fri Dec 14 16:26:04 2012
New Revision: 1421965

URL: http://svn.apache.org/viewvc?rev=1421965&view=rev
Log:
OAK-51 : Implement JCR Access Control Management (WIP)

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/AccessControlValidator.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/AccessControlValidator.java?rev=1421965&r1=1421964&r2=1421965&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/AccessControlValidator.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/AccessControlValidator.java
Fri Dec 14 16:26:04 2012
@@ -49,12 +49,16 @@ class AccessControlValidator implements 
     //----------------------------------------------------------< Validator >---
     @Override
     public void propertyAdded(PropertyState after) throws CommitFailedException {
-        // TODO: validate access control property
+        if (isAccessControlEntry(parentAfter)) {
+            checkValidAccessControlEntry(parentAfter);
+        }
     }
 
     @Override
     public void propertyChanged(PropertyState before, PropertyState after) throws CommitFailedException
{
-        // TODO: validate access control property
+        if (isAccessControlEntry(parentAfter)) {
+            checkValidAccessControlEntry(parentAfter);
+        }
     }
 
     @Override



Mime
View raw message