jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r779094 - /jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/constraint/ReferenceConstraint.java
Date Wed, 27 May 2009 10:31:49 GMT
Author: angela
Date: Wed May 27 10:31:48 2009
New Revision: 779094

URL: http://svn.apache.org/viewvc?rev=779094&view=rev
Log:
JCR-2105: JSR 283 NodeType Management (work in progress)

- add missing property types

Modified:
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/constraint/ReferenceConstraint.java

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/constraint/ReferenceConstraint.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/constraint/ReferenceConstraint.java?rev=779094&r1=779093&r2=779094&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/constraint/ReferenceConstraint.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/constraint/ReferenceConstraint.java
Wed May 27 10:31:48 2009
@@ -87,12 +87,13 @@
         }
         switch (value.getType()) {
             case PropertyType.REFERENCE:
-                // TODO check REFERENCE value constraint (requires a session)
-                log.warn("validation of REFERENCE constraint is not yet implemented");
+            case PropertyType.WEAKREFERENCE:
+                // TODO check value constraint (requires a session)
+                log.warn("validation of reference constraint is not yet implemented");
                 return;
 
             default:
-                String msg = "REFERENCE constraint can not be applied to value of type: "
+                String msg = "Reference constraint can not be applied to value of type: "
                         + PropertyType.nameFromValue(value.getType());
                 log.debug(msg);
                 throw new RepositoryException(msg);



Mime
View raw message