jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r779475 - /jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/RepositoryServiceImpl.java
Date Thu, 28 May 2009 08:19:31 GMT
Author: angela
Date: Thu May 28 08:19:31 2009
New Revision: 779475

URL: http://svn.apache.org/viewvc?rev=779475&view=rev
Log:
JCR-2003: JCR2SPI / SPI: Add support for JCR 2.0

- initial implementation for Node.setPrimaryType

Modified:
    jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/RepositoryServiceImpl.java

Modified: jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/RepositoryServiceImpl.java?rev=779475&r1=779474&r2=779475&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/RepositoryServiceImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex/RepositoryServiceImpl.java
Thu May 28 08:19:31 2009
@@ -598,8 +598,8 @@
             assertMethod();
 
             NamePathResolver resolver = getNamePathResolver(sessionInfo);
-            QValue qv = getQValueFactory(sessionInfo).create(primaryNodeTypeName);
-            setValue(getIdFactory().createPropertyId(nodeId, NameConstants.JCR_PRIMARYTYPE),
qv);
+            QValue v = getQValueFactory(sessionInfo).create(primaryNodeTypeName);
+            addProperty(nodeId, NameConstants.JCR_PRIMARYTYPE, v);
         }
 
         /**



Mime
View raw message