jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1149284 - /jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Date Thu, 21 Jul 2011 17:59:23 GMT
Author: mduerig
Date: Thu Jul 21 17:59:22 2011
New Revision: 1149284

URL: http://svn.apache.org/viewvc?rev=1149284&view=rev
Log:
spi2microkernel (WIP)
- adjust descriptors
- set name of default workspace

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=1149284&r1=1149283&r2=1149284&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
Thu Jul 21 17:59:22 2011
@@ -93,6 +93,7 @@ public class RepositoryServiceImpl exten
         QValue[] TRUE = new QValue[]{Values.TRUE};
 
         try {
+            put(SPEC_NAME_DESC, new QValue[]{Values.objectToValue("Content Repository for
Java Technology API")});
             put(NODE_TYPE_MANAGEMENT_SAME_NAME_SIBLINGS_SUPPORTED, FALSE);
             put(OPTION_WORKSPACE_MANAGEMENT_SUPPORTED, TRUE);
             put(OPTION_OBSERVATION_SUPPORTED, TRUE);
@@ -141,6 +142,9 @@ public class RepositoryServiceImpl exten
 
     @Override
     protected SessionInfo createSessionInfo(SessionInfo sessionInfo, String workspaceName)
throws RepositoryException {
+        if (workspaceName == null) {
+            workspaceName = Paths.DEFAULT_WORKSPACE;
+        }
         SessionInfo s = super.createSessionInfo(sessionInfo, workspaceName);
         createSessionState(s);
         return s;
@@ -151,6 +155,10 @@ public class RepositoryServiceImpl exten
         if (credentials == null) {
             credentials = new GuestCredentials();
         }
+        if (workspaceName == null) {
+            workspaceName = Paths.DEFAULT_WORKSPACE;
+        }
+        
         SessionInfo s = super.createSessionInfo(credentials, workspaceName);
         createSessionState(s);
         return s;



Mime
View raw message