jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1159731 - /jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Date Fri, 19 Aug 2011 18:24:36 GMT
Author: mduerig
Date: Fri Aug 19 18:24:36 2011
New Revision: 1159731

URL: http://svn.apache.org/viewvc?rev=1159731&view=rev
Log:
Microkernel based Jackrabbit prototype (WIP)
- set jcr:primaryType for root node

Modified:
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java?rev=1159731&r1=1159730&r2=1159731&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Fri Aug 19 18:24:36 2011
@@ -46,6 +46,7 @@ import org.apache.jackrabbit.spi.commons
 import org.apache.jackrabbit.spi.commons.QNodeDefinitionImpl;
 import org.apache.jackrabbit.spi.commons.SessionInfoImpl;
 import org.apache.jackrabbit.spi.commons.batch.ConsolidatingChangeLog;
+import org.apache.jackrabbit.spi.commons.name.NameConstants;
 import org.apache.jackrabbit.spi.commons.name.PathFactoryImpl;
 import org.apache.jackrabbit.spi2microkernel.util.DefaultValueProvider;
 import org.apache.jackrabbit.spi2microkernel.util.Function1;
@@ -564,7 +565,8 @@ public class RepositoryServiceImpl exten
                 }
             }
 
-            microKernel.commit("/", "+\"" + name + "\" : {\"{jcr}primaryType\":\"7:{rep}root\"}"
,
+            String repRoot = Values.nameToString(NameConstants.REP_ROOT);
+            microKernel.commit("/", "+\"" + name + "\" : {\"{jcr}primaryType\":" + repRoot
+ '}',
                     revisionId, "create workspace " + name);
         }
         catch (MicroKernelException e) {



Mime
View raw message