jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1450846 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/AbstractAccessControlTest.java
Date Wed, 27 Feb 2013 17:06:10 GMT
Author: angela
Date: Wed Feb 27 17:06:08 2013
New Revision: 1450846

URL: http://svn.apache.org/r1450846
Log:
OAK-51 : Access Control Management (tests)

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/AbstractAccessControlTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/AbstractAccessControlTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/AbstractAccessControlTest.java?rev=1450846&r1=1450845&r2=1450846&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/AbstractAccessControlTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/AbstractAccessControlTest.java
Wed Feb 27 17:06:08 2013
@@ -22,6 +22,7 @@ import javax.jcr.security.Privilege;
 
 import org.apache.jackrabbit.api.security.JackrabbitAccessControlManager;
 import org.apache.jackrabbit.api.security.authorization.PrivilegeManager;
+import org.apache.jackrabbit.api.security.principal.PrincipalManager;
 import org.apache.jackrabbit.oak.AbstractSecurityTest;
 import org.apache.jackrabbit.oak.api.Root;
 import org.apache.jackrabbit.oak.api.Tree;
@@ -80,6 +81,10 @@ public abstract class AbstractAccessCont
         return restrictionProvider;
     }
 
+    protected PrincipalManager getPrincipalManager() {
+        return getSecurityProvider().getPrincipalConfiguration().getPrincipalManager(root,
getNamePathMapper());
+    }
+
     protected PrivilegeManager getPrivilegeManager() {
         if (privMgr == null) {
             privMgr = getSecurityProvider().getPrivilegeConfiguration().getPrivilegeManager(root,
getNamePathMapper());



Mime
View raw message