jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1330806 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
Date Thu, 26 Apr 2012 12:20:44 GMT
Author: reschke
Date: Thu Apr 26 12:20:44 2012
New Revision: 1330806

URL: http://svn.apache.org/viewvc?rev=1330806&view=rev
Log:
OAK-61: add path/name mapping to SessionImpl methods

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java?rev=1330806&r1=1330805&r2=1330806&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
Thu Apr 26 12:20:44 2012
@@ -154,6 +154,10 @@ public class SessionImpl extends Abstrac
 
     @Override
     public void move(String srcAbsPath, String destAbsPath) throws RepositoryException {
+        internalMove(sessionContext.toOakPath(srcAbsPath), sessionContext.toOakPath(destAbsPath));
+    }
+
+    private void internalMove(String srcAbsPath, String destAbsPath) throws RepositoryException
{
         ensureIsAlive();
 
         String srcPath = Paths.relativize("/", srcAbsPath);
@@ -219,6 +223,10 @@ public class SessionImpl extends Abstrac
 
     @Override
     public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior)
throws RepositoryException {
+        return internalGetImportContentHandler(sessionContext.toOakPath(parentAbsPath), uuidBehavior);
+    }
+
+    private ContentHandler internalGetImportContentHandler(String parentAbsPath, int uuidBehavior)
throws RepositoryException {
         ensureIsAlive();
         throw new UnsupportedRepositoryOperationException("TODO: Session.getImportContentHandler");
     }
@@ -265,6 +273,10 @@ public class SessionImpl extends Abstrac
 
     @Override
     public boolean hasPermission(String absPath, String actions) throws RepositoryException
{
+        return internalHasPermission(sessionContext.toOakPath(absPath), actions);
+    }
+
+    private boolean internalHasPermission(String absPath, String actions) throws RepositoryException
{
         ensureIsAlive();
 
         // TODO



Mime
View raw message