jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1236775 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java
Date Fri, 27 Jan 2012 17:36:32 GMT
Author: angela
Date: Fri Jan 27 17:36:31 2012
New Revision: 1236775

URL: http://svn.apache.org/viewvc?rev=1236775&view=rev
Log:
JCR-3224 - SystemSession#createSession should return SessionImpl again

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java?rev=1236775&r1=1236774&r2=1236775&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java
Fri Jan 27 17:36:31 2012
@@ -122,27 +122,6 @@ class SystemSession extends SessionImpl 
         return false;
     }
 
-    /**
-     * Creates and returns a new <em>system</em> session for the
-     * given workspace.
-     *
-     * @param workspaceName workspace name,
-     *                      or <code>null</code> for the default workspace
-     */
-    @Override
-    public SessionImpl createSession(String workspaceName)
-            throws RepositoryException {
-        if (workspaceName == null) {
-            WorkspaceManager wm = repositoryContext.getWorkspaceManager();
-            workspaceName = wm.getDefaultWorkspaceName();
-        }
-
-        RepositoryImpl repository = repositoryContext.getRepository();
-        WorkspaceConfig wspConfig =
-            repository.getWorkspaceInfo(workspaceName).getConfig();
-        return create(repositoryContext, wspConfig);
-    }
-
     //--------------------------------------------------------< inner classes >
     /**
      * An access manager that grants access to everything.



Mime
View raw message