jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1144321 - /jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Date Fri, 08 Jul 2011 14:10:04 GMT
Author: mduerig
Date: Fri Jul  8 14:10:03 2011
New Revision: 1144321

URL: http://svn.apache.org/viewvc?rev=1144321&view=rev
Log:
implement createRootNodeDefinition

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

Modified: jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java?rev=1144321&r1=1144320&r2=1144321&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Fri Jul  8 14:10:03 2011
@@ -43,6 +43,7 @@ import org.apache.jackrabbit.spi.Subscri
 import org.apache.jackrabbit.spi.commons.AbstractRepositoryService;
 import org.apache.jackrabbit.spi.commons.EventFilterImpl;
 import org.apache.jackrabbit.spi.commons.ItemInfoCacheImpl;
+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.spi2microkernel.util.JsonHandlerBase;
@@ -57,6 +58,7 @@ import javax.jcr.NoSuchWorkspaceExceptio
 import javax.jcr.PathNotFoundException;
 import javax.jcr.RepositoryException;
 import javax.jcr.UnsupportedRepositoryOperationException;
+import javax.jcr.version.OnParentVersionAction;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Collections;
@@ -74,6 +76,9 @@ import static org.apache.jackrabbit.spi2
 import static org.apache.jackrabbit.spi2microkernel.util.ItemInfos.*;
 
 public class RepositoryServiceImpl extends AbstractRepositoryService {
+    private static final QNodeDefinition ROOT_NODE_DEFINITION = new QNodeDefinitionImpl(ROOT,
REP_ROOT, true, true,
+            OnParentVersionAction.VERSION, false, REP_ROOT, new Name[]{ REP_ROOT }, false);
+
     private static final Map<String, QValue[]> DESCRIPTORS = new HashMap<String,
QValue[]>() {{
         QValue[] FALSE = new QValue[]{Values.FALSE};
         QValue[] TRUE = new QValue[]{Values.TRUE};
@@ -108,8 +113,7 @@ public class RepositoryServiceImpl exten
 
     @Override
     protected QNodeDefinition createRootNodeDefinition(SessionInfo sessionInfo) throws RepositoryException
{
-        throw new UnsupportedRepositoryOperationException();
-        // todo implement createRootNodeDefinition
+        return ROOT_NODE_DEFINITION;
     }
 
     //------------------------------------------< Session and Workspace handling >---



Mime
View raw message