jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1431959 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserManagerImpl.java
Date Fri, 11 Jan 2013 09:50:43 GMT
Author: angela
Date: Fri Jan 11 09:50:42 2013
New Revision: 1431959

URL: http://svn.apache.org/viewvc?rev=1431959&view=rev
Log:
OAK-50 : Implement User Management

- keep index when converting jcr user path

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserManagerImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserManagerImpl.java?rev=1431959&r1=1431958&r2=1431959&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserManagerImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/UserManagerImpl.java
Fri Jan 11 09:50:42 2013
@@ -105,7 +105,7 @@ public class UserManagerImpl implements 
     @Override
     public Authorizable getAuthorizableByPath(String path) throws RepositoryException {
         checkIsLive();
-        String oakPath = namePathMapper.getOakPath(path);
+        String oakPath = namePathMapper.getOakPathKeepIndex(path);
         if (oakPath == null) {
             throw new RepositoryException("Invalid path " + path);
         }
@@ -143,7 +143,7 @@ public class UserManagerImpl implements 
         checkValidPrincipal(principal, false);
 
         if (intermediatePath != null) {
-            intermediatePath = namePathMapper.getOakPath(intermediatePath);
+            intermediatePath = namePathMapper.getOakPathKeepIndex(intermediatePath);
         }
         Tree userTree = userProvider.createUser(userID, intermediatePath);
         setPrincipal(userTree, principal);
@@ -181,7 +181,7 @@ public class UserManagerImpl implements 
         checkValidPrincipal(principal, true);
 
         if (intermediatePath != null) {
-            intermediatePath = namePathMapper.getOakPath(intermediatePath);
+            intermediatePath = namePathMapper.getOakPathKeepIndex(intermediatePath);
         }
         Tree groupTree = userProvider.createGroup(groupID, intermediatePath);
         setPrincipal(groupTree, principal);



Mime
View raw message