jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r894151 - in /jackrabbit/trunk: jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractJCR2SPITest.java jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/AbstractRepositoryService.java
Date Mon, 28 Dec 2009 11:37:45 GMT
Author: mduerig
Date: Mon Dec 28 11:37:45 2009
New Revision: 894151

URL: http://svn.apache.org/viewvc?rev=894151&view=rev
Log:
JCR-2448: Introduce SessionInfo parameter for AbstractRepositoryService.createRootNodeDefinition()


Modified:
    jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractJCR2SPITest.java
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/AbstractRepositoryService.java

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractJCR2SPITest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractJCR2SPITest.java?rev=894151&r1=894150&r2=894151&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractJCR2SPITest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractJCR2SPITest.java
Mon Dec 28 11:37:45 2009
@@ -99,7 +99,9 @@
             }
 
             @Override
-            protected QNodeDefinition createRootNodeDefinition() throws RepositoryException
{
+            protected QNodeDefinition createRootNodeDefinition(SessionInfo sessionInfo)
+                    throws RepositoryException {
+
                 return AbstractJCR2SPITest.this.createRootNodeDefinition();
             }
 

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/AbstractRepositoryService.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/AbstractRepositoryService.java?rev=894151&r1=894150&r2=894151&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/AbstractRepositoryService.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/AbstractRepositoryService.java
Mon Dec 28 11:37:45 2009
@@ -223,11 +223,12 @@
 
     /**
      * Create the root node definition.
-     *
+     * @param sessionInfo  the session info.
      * @return the root node definition for a workspace.
      * @throws RepositoryException if an error occurs.
      */
-    protected abstract QNodeDefinition createRootNodeDefinition() throws RepositoryException;
+    protected abstract QNodeDefinition createRootNodeDefinition(SessionInfo sessionInfo)
+            throws RepositoryException;
 
     //---------------------< may be overwritten by subclasses>------------------
 
@@ -425,7 +426,7 @@
         if (nodeId.getUniqueID() == null && nodeId.getPath().denotesRoot()) {
             synchronized (this) {
                 if (rootNodeDefinition == null) {
-                    rootNodeDefinition = createRootNodeDefinition();
+                    rootNodeDefinition = createRootNodeDefinition(sessionInfo);
                 }
                 return rootNodeDefinition;
             }



Mime
View raw message