jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1381240 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/NodeTypeImpl.java
Date Wed, 05 Sep 2012 16:46:45 GMT
Author: mduerig
Date: Wed Sep  5 16:46:44 2012
New Revision: 1381240

URL: http://svn.apache.org/viewvc?rev=1381240&view=rev
Log:
OAK-66: JCR Node Type Management
node type validation (WIP)
FIX: canRemoveNodes should check ChildNodeDefinitions not PropertyDefinitions

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/NodeTypeImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/NodeTypeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/NodeTypeImpl.java?rev=1381240&r1=1381239&r2=1381240&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/NodeTypeImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/NodeTypeImpl.java
Wed Sep  5 16:46:44 2012
@@ -336,7 +336,7 @@ class NodeTypeImpl implements NodeType {
 
     @Override
     public boolean canRemoveNode(String nodeName) {
-        for (PropertyDefinition definition : getPropertyDefinitions()) {
+        for (NodeDefinition definition : getChildNodeDefinitions()) {
             String name = definition.getName();
             if (matches(nodeName, name)) {
                 if (definition.isMandatory() || definition.isProtected()) {



Mime
View raw message