jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1465999 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/AccessControlManagerImpl.java
Date Tue, 09 Apr 2013 12:42:42 GMT
Author: angela
Date: Tue Apr  9 12:42:42 2013
New Revision: 1465999

URL: http://svn.apache.org/r1465999
Log:
OAK-51 : Access Control Management (minor improvement)

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/AccessControlManagerImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/AccessControlManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/AccessControlManagerImpl.java?rev=1465999&r1=1465998&r2=1465999&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/AccessControlManagerImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/AccessControlManagerImpl.java
Tue Apr  9 12:42:42 2013
@@ -536,8 +536,7 @@ public class AccessControlManagerImpl im
         if (provider == null) {
             throw new UnsupportedRepositoryOperationException();
         }
-        String oakPath = getOakPath(absPath);
-        Tree tree = getTree(oakPath, Permissions.NO_PERMISSION);
+        Tree tree = getTree(getOakPath(absPath), Permissions.NO_PERMISSION);
         Set<String> pNames = provider.getPrivileges(tree);
         if (pNames.isEmpty()) {
             return new Privilege[0];
@@ -556,8 +555,7 @@ public class AccessControlManagerImpl im
         if (provider == null) {
             throw new UnsupportedRepositoryOperationException();
         }
-        String oakPath = getOakPath(absPath);
-        Tree tree = getTree(oakPath, Permissions.NO_PERMISSION);
+        Tree tree = getTree(getOakPath(absPath), Permissions.NO_PERMISSION);
         Set<String> privilegeNames = new HashSet<String>(privileges.length);
         for (Privilege privilege : privileges) {
             privilegeNames.add(namePathMapper.getOakName(privilege.getName()));



Mime
View raw message