jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1148450 - in /jackrabbit/sandbox/spi2microkernel: pom.xml src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Date Tue, 19 Jul 2011 17:11:16 GMT
Author: mduerig
Date: Tue Jul 19 17:11:15 2011
New Revision: 1148450

URL: http://svn.apache.org/viewvc?rev=1148450&view=rev
Log:
spi2microkernel (WIP)
- fix dependencies
- add logging

Modified:
    jackrabbit/sandbox/spi2microkernel/pom.xml
    jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java

Modified: jackrabbit/sandbox/spi2microkernel/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/pom.xml?rev=1148450&r1=1148449&r2=1148450&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/pom.xml (original)
+++ jackrabbit/sandbox/spi2microkernel/pom.xml Tue Jul 19 17:11:15 2011
@@ -47,6 +47,11 @@
         </dependency>
         <dependency>
             <groupId>org.apache.jackrabbit</groupId>
+            <artifactId>jackrabbit-jcr-commons</artifactId>
+            <version>2.3-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.jackrabbit</groupId>
             <artifactId>microkernel</artifactId>
             <version>0.1-SNAPSHOT</version>
         </dependency>
@@ -56,10 +61,20 @@
             <version>1.1</version>
         </dependency>
         <dependency>
+            <groupId>commons-io</groupId>
+            <artifactId>commons-io</artifactId>
+            <version>1.4</version>
+        </dependency>
+        <dependency>
             <groupId>javax.jcr</groupId>
             <artifactId>jcr</artifactId>
             <version>2.0</version>
         </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+            <version>1.6.1</version>
+        </dependency>
 
         <!-- test dependencies -->
         <dependency>

Modified: jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java?rev=1148450&r1=1148449&r2=1148450&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Tue Jul 19 17:11:15 2011
@@ -54,6 +54,8 @@ import org.apache.jackrabbit.spi2microke
 import org.apache.jackrabbit.spi2microkernel.util.Values;
 import org.json.simple.parser.JSONParser;
 import org.json.simple.parser.ParseException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import javax.jcr.Credentials;
 import javax.jcr.GuestCredentials;
@@ -80,6 +82,8 @@ import static org.apache.jackrabbit.spi2
 import static org.apache.jackrabbit.spi2microkernel.util.ItemInfos.*;
 
 public class RepositoryServiceImpl extends AbstractRepositoryService {
+    static final Logger log = LoggerFactory.getLogger(RepositoryServiceImpl.class);
+
     private static final QNodeDefinition ROOT_NODE_DEFINITION = new QNodeDefinitionImpl(ROOT,
REP_ROOT, true, true,
             OnParentVersionAction.VERSION, false, REP_ROOT, new Name[]{ REP_ROOT }, false);
 
@@ -545,8 +549,10 @@ public class RepositoryServiceImpl exten
         }
 
         public void reorderNodes(NodeId parentId, NodeId srcNodeId, NodeId beforeNodeId)
throws RepositoryException {
-            // todo implement reorderNodes
-            throw new UnsupportedRepositoryOperationException("reorderNodes");
+            log.error("Not implemented: reorderNodes");
+
+            // fixme implement reorderNodes
+            //throw new UnsupportedRepositoryOperationException("reorderNodes");
         }
 
         public void setMixins(NodeId nodeId, Name[] mixinNodeTypeNames) throws RepositoryException
{



Mime
View raw message