jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1325211 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/WorkspaceImpl.java
Date Thu, 12 Apr 2012 11:55:19 GMT
Author: angela
Date: Thu Apr 12 11:55:19 2012
New Revision: 1325211

URL: http://svn.apache.org/viewvc?rev=1325211&view=rev
Log:
OAK-63 : Implement workspace copy and move (cross workspace copy not supported)

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/WorkspaceImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/WorkspaceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/WorkspaceImpl.java?rev=1325211&r1=1325210&r2=1325211&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/WorkspaceImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/WorkspaceImpl.java
Thu Apr 12 11:55:19 2012
@@ -28,6 +28,7 @@ import javax.jcr.NamespaceRegistry;
 import javax.jcr.Repository;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
+import javax.jcr.UnsupportedRepositoryOperationException;
 import javax.jcr.Workspace;
 import javax.jcr.lock.LockManager;
 import javax.jcr.nodetype.NodeTypeManager;
@@ -77,6 +78,10 @@ public class WorkspaceImpl implements Wo
         ensureSupportedOption(Repository.LEVEL_2_SUPPORTED);
         ensureIsAlive();
 
+        if (!getName().equals(srcWorkspace)) {
+            throw new UnsupportedRepositoryOperationException("Not implemented.");
+        }
+
         try {
             Connection connection = sessionContext.getConnection();
             NodeStateEditor editor = connection.getNodeStateEditor(connection.getCurrentRoot());



Mime
View raw message