jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r960029 - in /jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi: client/ClientNodeType.java remote/RemoteNodeType.java server/ServerNodeType.java
Date Fri, 02 Jul 2010 15:29:12 GMT
Author: stefan
Date: Fri Jul  2 15:29:12 2010
New Revision: 960029

URL: http://svn.apache.org/viewvc?rev=960029&view=rev
Log:
JCRRMI-26: JSR-283 support

Modified:
    jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientNodeType.java
    jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/remote/RemoteNodeType.java
    jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/server/ServerNodeType.java

Modified: jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientNodeType.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientNodeType.java?rev=960029&r1=960028&r2=960029&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientNodeType.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/client/ClientNodeType.java
Fri Jul  2 15:29:12 2010
@@ -271,7 +271,11 @@ public class ClientNodeType extends Clie
     }
 
     public boolean isAbstract() {
-        throw new RuntimeException("TODO: JCRRMI-26");
+        try {
+            return remote.isAbstract();
+        } catch (RemoteException ex) {
+            throw new RemoteRuntimeException(ex);
+        }
     }
 
     public boolean isQueryable() {

Modified: jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/remote/RemoteNodeType.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/remote/RemoteNodeType.java?rev=960029&r1=960028&r2=960029&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/remote/RemoteNodeType.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/remote/RemoteNodeType.java
Fri Jul  2 15:29:12 2010
@@ -63,6 +63,16 @@ public interface RemoteNodeType extends 
 
     /**
      * Remote version of the
+     * {@link javax.jcr.nodetype.NodeType#isAbstract() NodeType.isAbstract()} method.
+     *
+     * @return <code>true</code> if this is an abstract type,
+     *         <code>false</code> otherwise
+     * @throws RemoteException on RMI errors
+     */
+    boolean isAbstract() throws RemoteException;
+
+    /**
+     * Remote version of the
      * {@link javax.jcr.nodetype.NodeType#hasOrderableChildNodes() NodeType.hasOrderableChildNodes()}
      * method.
      *

Modified: jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/server/ServerNodeType.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/server/ServerNodeType.java?rev=960029&r1=960028&r2=960029&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/server/ServerNodeType.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/server/ServerNodeType.java
Fri Jul  2 15:29:12 2010
@@ -117,6 +117,11 @@ public class ServerNodeType extends Serv
     }
 
     /** {@inheritDoc} */
+    public boolean isAbstract() throws RemoteException {
+        return type.isAbstract();
+    }
+
+    /** {@inheritDoc} */
     public boolean hasOrderableChildNodes() throws RemoteException {
         return type.hasOrderableChildNodes();
     }



Mime
View raw message