jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1408680 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
Date Tue, 13 Nov 2012 11:19:36 GMT
Author: mreutegg
Date: Tue Nov 13 11:19:35 2012
New Revision: 1408680

URL: http://svn.apache.org/viewvc?rev=1408680&view=rev
Log:
OAK-51: Implement JCR Access Control Management
- implement AccessControlManager.privilegeFromName()

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=1408680&r1=1408679&r2=1408680&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
Tue Nov 13 11:19:35 2012
@@ -400,8 +400,8 @@ public class SessionImpl extends Abstrac
             }
             @Override
             public Privilege privilegeFromName(String privilegeName)
-                    throws AccessControlException {
-                throw new AccessControlException(privilegeName);
+                    throws AccessControlException, RepositoryException {
+                return dlg.getPrivilegeManager().getPrivilege(privilegeName);
             }
             @Override
             public boolean hasPrivileges(String absPath, Privilege[] privileges) {



Mime
View raw message