jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r430028 - in /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype: EffectiveNodeType.java ValueConstraint.java
Date Wed, 09 Aug 2006 10:33:33 GMT
Author: angela
Date: Wed Aug  9 03:33:32 2006
New Revision: 430028

URL: http://svn.apache.org/viewvc?rev=430028&view=rev
Log:
work in progress

- javadoc
- remove commented code

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/EffectiveNodeType.java
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/EffectiveNodeType.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/EffectiveNodeType.java?rev=430028&r1=430027&r2=430028&view=diff
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/EffectiveNodeType.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/EffectiveNodeType.java
Wed Aug  9 03:33:32 2006
@@ -65,7 +65,7 @@
      * @return
      * @throws NoSuchNodeTypeException
      * @throws ConstraintViolationException if no applicable child node definition
-     *                                      could be found
+     * could be found
      */
     public QNodeDefinition getApplicableNodeDefinition(QName name, QName nodeTypeName)
             throws NoSuchNodeTypeException, ConstraintViolationException;

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java?rev=430028&r1=430027&r2=430028&view=diff
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/ValueConstraint.java
Wed Aug  9 03:33:32 2006
@@ -862,14 +862,6 @@
         switch (value.getType()) {
             case PropertyType.REFERENCE:
                 // @todo check REFERENCE value constraint (requires a session)
-                /*
-                UUID targetUUID = (UUID) value.internalValue();
-                NodeImpl targetNode = (NodeImpl) session.getNodeByUUID(targetUUID.toString());
-                if (!targetNode.isNodeType(ntName)) {
-                    throw new ConstraintViolationException("the node with uuid "
-                            + targetUUID + " does not satisfy the constraint '" + definition
+ "'");
-                }
-                */
                 log.warn("validation of REFERENCE constraint is not yet implemented");
                 return;
 



Mime
View raw message