jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r552918 - in /jackrabbit/trunk/contrib/jackrabbit-spi-xml: pom.xml src/main/java/org/apache/jackrabbit/spi/xml/XMLRepositoryService.java
Date Tue, 03 Jul 2007 17:10:17 GMT
Author: angela
Date: Tue Jul  3 10:10:16 2007
New Revision: 552918

URL: http://svn.apache.org/viewvc?view=rev&rev=552918
Log:
JCR-999  SPI: provide batch read functionality -> add missing method
         to the RepositoryService implementation
change version to 1.4-SNAPSHOT

Modified:
    jackrabbit/trunk/contrib/jackrabbit-spi-xml/pom.xml
    jackrabbit/trunk/contrib/jackrabbit-spi-xml/src/main/java/org/apache/jackrabbit/spi/xml/XMLRepositoryService.java

Modified: jackrabbit/trunk/contrib/jackrabbit-spi-xml/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/jackrabbit-spi-xml/pom.xml?view=diff&rev=552918&r1=552917&r2=552918
==============================================================================
--- jackrabbit/trunk/contrib/jackrabbit-spi-xml/pom.xml (original)
+++ jackrabbit/trunk/contrib/jackrabbit-spi-xml/pom.xml Tue Jul  3 10:10:16 2007
@@ -29,7 +29,7 @@
   <parent>
     <groupId>org.apache.jackrabbit</groupId>
     <artifactId>jackrabbit</artifactId>
-    <version>1.3-SNAPSHOT</version>
+    <version>1.4-SNAPSHOT</version>
     <relativePath>../..</relativePath>
   </parent>
   <artifactId>jackrabbit-spi-xml</artifactId>

Modified: jackrabbit/trunk/contrib/jackrabbit-spi-xml/src/main/java/org/apache/jackrabbit/spi/xml/XMLRepositoryService.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/jackrabbit-spi-xml/src/main/java/org/apache/jackrabbit/spi/xml/XMLRepositoryService.java?view=diff&rev=552918&r1=552917&r2=552918
==============================================================================
--- jackrabbit/trunk/contrib/jackrabbit-spi-xml/src/main/java/org/apache/jackrabbit/spi/xml/XMLRepositoryService.java
(original)
+++ jackrabbit/trunk/contrib/jackrabbit-spi-xml/src/main/java/org/apache/jackrabbit/spi/xml/XMLRepositoryService.java
Tue Jul  3 10:10:16 2007
@@ -22,6 +22,7 @@
 import java.util.Iterator;
 import java.util.Map;
 import java.util.Set;
+import java.util.Collections;
 
 import javax.jcr.AccessDeniedException;
 import javax.jcr.Credentials;
@@ -37,6 +38,7 @@
 import javax.jcr.RepositoryException;
 import javax.jcr.SimpleCredentials;
 import javax.jcr.UnsupportedRepositoryOperationException;
+import javax.jcr.ItemNotFoundException;
 import javax.jcr.lock.LockException;
 import javax.jcr.nodetype.ConstraintViolationException;
 import javax.jcr.query.InvalidQueryException;
@@ -243,6 +245,14 @@
             return new XMLNodeInfo((XMLNodeId) id);
         } catch (ClassCastException e) {
             throw new RepositoryException("Invalid node identifier: " + id);
+        }
+    }
+
+    public Iterator getItemInfos(SessionInfo sessionInfo, NodeId nodeId) throws ItemNotFoundException,
RepositoryException {
+        try {
+            return Collections.singletonList(new XMLNodeInfo((XMLNodeId) nodeId)).iterator();
+        } catch (ClassCastException e) {
+            throw new RepositoryException("Invalid node identifier: " + nodeId);
         }
     }
 



Mime
View raw message