jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1158395 - /jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Date Tue, 16 Aug 2011 17:48:20 GMT
Author: mduerig
Date: Tue Aug 16 17:48:19 2011
New Revision: 1158395

URL: http://svn.apache.org/viewvc?rev=1158395&view=rev
Log:
Microkernel based Jackrabbit prototype (WIP)

Modified:
    jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java?rev=1158395&r1=1158394&r2=1158395&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Tue Aug 16 17:48:19 2011
@@ -357,17 +357,17 @@ public class RepositoryServiceImpl exten
         }
     }
 
-    public NodeInfo getNodeInfo(SessionInfo sessionInfo, NodeId nodeId) throws RepositoryException
{
+    public PropertyInfo getPropertyInfo(SessionInfo sessionInfo, PropertyId propertyId) throws
RepositoryException {
         try {
             String wspName = sessionInfo.getWorkspaceName();
-            Path path = getPath(nodeId);
-            String mkPath = Paths.pathToString(wspName, path);
+            Path path = getPath(propertyId);
+            String mkPath = Paths.pathToString(wspName, path.getAncestor(1));
             String rev = microKernel.getHeadRevision();
 
-            NodeInfo info = null;
+            PropertyInfo info = null;
             if (microKernel.nodeExists(mkPath, rev)) {
                 String json = microKernel.getNodes(mkPath, rev);
-                info = buildNodeInfo(path, json, readFromDataStore);
+                info = buildPropertyInfo(path, json, readFromDataStore);
             }
 
             if (info == null) {
@@ -382,17 +382,17 @@ public class RepositoryServiceImpl exten
         }
     }
 
-    public PropertyInfo getPropertyInfo(SessionInfo sessionInfo, PropertyId propertyId) throws
RepositoryException {
+    public NodeInfo getNodeInfo(SessionInfo sessionInfo, NodeId nodeId) throws RepositoryException
{
         try {
             String wspName = sessionInfo.getWorkspaceName();
-            Path path = getPath(propertyId);
-            String mkPath = Paths.pathToString(wspName, path.getAncestor(1));
+            Path path = getPath(nodeId);
+            String mkPath = Paths.pathToString(wspName, path);
             String rev = microKernel.getHeadRevision();
 
-            PropertyInfo info = null;
+            NodeInfo info = null;
             if (microKernel.nodeExists(mkPath, rev)) {
                 String json = microKernel.getNodes(mkPath, rev);
-                info = buildPropertyInfo(path, json, readFromDataStore);
+                info = buildNodeInfo(path, json, readFromDataStore);
             }
 
             if (info == null) {



Mime
View raw message