jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r771702 - in /jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi: NodeImpl.java SessionImpl.java
Date Tue, 05 May 2009 12:53:34 GMT
Author: jukka
Date: Tue May  5 12:53:34 2009
New Revision: 771702

URL: http://svn.apache.org/viewvc?rev=771702&view=rev
Log:
JCR-1104: JSR 283 support

Leverage the new JCR 2.0 Session method implementations in AbstractSession.

Add a dummy implementation of Node.getIdentifier()

Modified:
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/SessionImpl.java

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java?rev=771702&r1=771701&r2=771702&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/NodeImpl.java
Tue May  5 12:53:34 2009
@@ -502,6 +502,11 @@
         }
     }
 
+    public String getIdentifier() throws RepositoryException {
+        // FIXME: Support the UUID/path identifiers
+        return getUUID();
+    }
+
     /**
      * @see Node#getUUID()
      */
@@ -1646,10 +1651,6 @@
         throw new UnsupportedRepositoryOperationException("JCR-1104");
     }
 
-    public String getIdentifier() throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1104");
-    }
-
     public NodeIterator getNodes(String[] nameGlobs)
             throws RepositoryException {
         throw new UnsupportedRepositoryOperationException("JCR-1104");

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/SessionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/SessionImpl.java?rev=771702&r1=771701&r2=771702&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/SessionImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/SessionImpl.java
Tue May  5 12:53:34 2009
@@ -33,7 +33,6 @@
 import javax.jcr.NoSuchWorkspaceException;
 import javax.jcr.Node;
 import javax.jcr.PathNotFoundException;
-import javax.jcr.Property;
 import javax.jcr.Repository;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
@@ -872,18 +871,10 @@
         throw new UnsupportedRepositoryOperationException("JCR-1104");
     }
 
-    public Node getNode(String absPath) throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1104");
-    }
-
     public Node getNodeByIdentifier(String id) throws RepositoryException {
         throw new UnsupportedRepositoryOperationException("JCR-1104");
     }
 
-    public Property getProperty(String absPath) throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1104");
-    }
-
     public RetentionManager getRetentionManager()
             throws UnsupportedRepositoryOperationException, RepositoryException {
         throw new UnsupportedRepositoryOperationException("JCR-1104");
@@ -899,16 +890,4 @@
         throw new UnsupportedRepositoryOperationException("JCR-1104");
     }
 
-    public boolean nodeExists(String absPath) throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1104");
-    }
-
-    public boolean propertyExists(String absPath) throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1104");
-    }
-
-    public void removeItem(String absPath) throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1104");
-    }
-
 }



Mime
View raw message