jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r155817 - incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNode.java incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java
Date Tue, 01 Mar 2005 19:22:53 GMT
Author: jukka
Date: Tue Mar  1 11:22:51 2005
New Revision: 155817

URL: http://svn.apache.org/viewcvs?view=rev&rev=155817
Log:
Upgraded UnsupportedOperationExceptions to UnsupportedRepositoryOperationExceptions.
Fixed the argument order of Workspace.copy(String,String,String).

Modified:
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNode.java
    incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNode.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNode.java?view=diff&r1=155816&r2=155817
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNode.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientNode.java
Tue Mar  1 11:22:51 2005
@@ -35,6 +35,7 @@
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 import javax.jcr.StringValue;
+import javax.jcr.UnsupportedRepositoryOperationException;
 import javax.jcr.Value;
 import javax.jcr.lock.Lock;
 import javax.jcr.nodetype.NodeDef;
@@ -386,7 +387,7 @@
     public Version checkin() throws RepositoryException {
         // TODO Auto-generated method stub
         // return null;
-        throw new UnsupportedOperationException();
+        throw new UnsupportedRepositoryOperationException();
     }
 
     /** {@inheritDoc} */
@@ -420,13 +421,13 @@
     /** {@inheritDoc} */
     public void cancelMerge(Version version) throws RepositoryException {
         // TODO Auto-generated method stub
-        throw new UnsupportedOperationException();
+        throw new UnsupportedRepositoryOperationException();
     }
 
     /** {@inheritDoc} */
     public void doneMerge(Version version) throws RepositoryException {
         // TODO Auto-generated method stub
-        throw new UnsupportedOperationException();
+        throw new UnsupportedRepositoryOperationException();
     }
 
     /** {@inheritDoc} */
@@ -462,14 +463,14 @@
     public void restore(Version version, boolean removeExisting)
             throws RepositoryException {
         // TODO Auto-generated method stub
-        throw new UnsupportedOperationException();
+        throw new UnsupportedRepositoryOperationException();
     }
 
     /** {@inheritDoc} */
     public void restore(Version version, String path, boolean removeExisting)
             throws RepositoryException {
         // TODO Auto-generated method stub
-        throw new UnsupportedOperationException();
+        throw new UnsupportedRepositoryOperationException();
     }
 
     /** {@inheritDoc} */
@@ -517,14 +518,14 @@
     public VersionHistory getVersionHistory() throws RepositoryException {
         // TODO Auto-generated method stub
         // return null;
-        throw new UnsupportedOperationException();
+        throw new UnsupportedRepositoryOperationException();
     }
 
     /** {@inheritDoc} */
     public Version getBaseVersion() throws RepositoryException {
         // TODO Auto-generated method stub
         // return null;
-        throw new UnsupportedOperationException();
+        throw new UnsupportedRepositoryOperationException();
     }
 
     /** {@inheritDoc} */

Modified: incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java?view=diff&r1=155816&r2=155817
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-rmi/src/java/org/apache/jackrabbit/rmi/client/ClientWorkspace.java
Tue Mar  1 11:22:51 2005
@@ -24,6 +24,7 @@
 import javax.jcr.NamespaceRegistry;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
+import javax.jcr.UnsupportedRepositoryOperationException;
 import javax.jcr.Workspace;
 import javax.jcr.nodetype.NodeTypeManager;
 import javax.jcr.observation.ObservationManager;
@@ -38,10 +39,9 @@
 import org.xml.sax.ContentHandler;
 
 /**
- * Local adapter for the JCR-RMI
- * {@link org.apache.jackrabbit.rmi.remote.RemoteWorkspace RemoteWorkspace}
- * inteface. This class makes a remote workspace locally available using
- * the JCR {@link javax.jcr.Workspace Workspace} interface.
+ * Local adapter for the JCR-RMI {@link RemoteWorkspace RemoteWorkspace}
+ * interface. This class makes a remote workspace locally available using
+ * the JCR {@link Workspace Workspace} interface.
  *
  * @author Jukka Zitting
  * @author Philipp Koch
@@ -99,10 +99,10 @@
     }
 
     /** {@inheritDoc} */
-    public void copy(String from, String to, String workspace)
+    public void copy(String workspace, String to, String from)
             throws RepositoryException {
         try {
-            remote.copy(from, to, workspace);
+            remote.copy(workspace, from, to);
         } catch (RemoteException ex) {
             throw new RemoteRepositoryException(ex);
         }
@@ -152,7 +152,7 @@
             throws RepositoryException {
         // TODO Auto-generated method stub
         // return null;
-        throw new UnsupportedOperationException();
+        throw new UnsupportedRepositoryOperationException();
     }
 
     /** {@inheritDoc} */
@@ -201,6 +201,7 @@
     public void restore(Version[] versions, boolean removeExisting)
             throws RepositoryException {
         // TODO Auto-generated method stub
+        throw new UnsupportedRepositoryOperationException();
     }
 
 }



Mime
View raw message