jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1408789 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
Date Tue, 13 Nov 2012 15:39:14 GMT
Author: angela
Date: Tue Nov 13 15:39:13 2012
New Revision: 1408789

URL: http://svn.apache.org/viewvc?rev=1408789&view=rev
Log:
OAK-51 : Implement JCR Access Control Management

fix wrong AccessControlException thrown in dummy ACMgr implementation

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=1408789&r1=1408788&r2=1408789&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 15:39:13 2012
@@ -16,14 +16,12 @@
  */
 package org.apache.jackrabbit.oak.jcr;
 
-import java.security.AccessControlException;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Locale;
 import java.util.Map;
 import java.util.Set;
-
 import javax.annotation.Nonnull;
 import javax.jcr.AccessDeniedException;
 import javax.jcr.Credentials;
@@ -40,6 +38,7 @@ import javax.jcr.UnsupportedRepositoryOp
 import javax.jcr.ValueFactory;
 import javax.jcr.Workspace;
 import javax.jcr.retention.RetentionManager;
+import javax.jcr.security.AccessControlException;
 import javax.jcr.security.AccessControlManager;
 import javax.jcr.security.AccessControlPolicy;
 import javax.jcr.security.AccessControlPolicyIterator;
@@ -391,11 +390,11 @@ public class SessionImpl extends Abstrac
             throws RepositoryException {
         return TODO.unimplemented().returnValue(new AccessControlManager() {
             @Override
-            public void setPolicy(String absPath, AccessControlPolicy policy) {
+            public void setPolicy(String absPath, AccessControlPolicy policy) throws AccessControlException
{
                 throw new AccessControlException(policy.toString());
             }
             @Override
-            public void removePolicy(String absPath, AccessControlPolicy policy) {
+            public void removePolicy(String absPath, AccessControlPolicy policy) throws AccessControlException
{
                 throw new AccessControlException(policy.toString());
             }
             @Override



Mime
View raw message