jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r784124 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java
Date Fri, 12 Jun 2009 13:59:05 GMT
Author: angela
Date: Fri Jun 12 13:59:04 2009
New Revision: 784124

URL: http://svn.apache.org/viewvc?rev=784124&view=rev
Log:
JCR-1588: JSR 283 Access Control

- resolve TODO in ac-mgr present with the system session
- fix javadoc

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java?rev=784124&r1=784123&r2=784124&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java
Fri Jun 12 13:59:04 2009
@@ -141,7 +141,6 @@
          * {@inheritDoc}
          *
          * @throws AccessDeniedException is never thrown
-         * @throws ItemNotFoundException is never thrown
          * @throws RepositoryException   is never thrown
          */
         public void checkPermission(ItemId id, int permissions)
@@ -160,7 +159,6 @@
          * {@inheritDoc}
          *
          * @return always <code>true</code>
-         * @throws ItemNotFoundException is never thrown
          * @throws RepositoryException   is never thrown
          */
         public boolean isGranted(ItemId id, int permissions) throws RepositoryException {
@@ -202,7 +200,6 @@
          * {@inheritDoc}
          *
          * @return always <code>true</code>
-         * @throws NoSuchWorkspaceException is never thrown
          * @throws RepositoryException      is never thrown
          */
         public boolean canAccess(String workspaceName) throws RepositoryException {
@@ -249,7 +246,7 @@
 
         //-------------------------------------------< AccessControlManager >---
         /**
-         * @see AccessControlManager#hasPrivileges(String, Privilege[])
+         * @see javax.jcr.security.AccessControlManager#hasPrivileges(String, Privilege[])
          */
         public boolean hasPrivileges(String absPath, Privilege[] privileges)
                 throws PathNotFoundException, RepositoryException {
@@ -259,7 +256,7 @@
         }
 
         /**
-         * @see AccessControlManager#getPrivileges(String)
+         * @see javax.jcr.security.AccessControlManager#getPrivileges(String)
          */
         public Privilege[] getPrivileges(String absPath)
                 throws PathNotFoundException, RepositoryException {
@@ -268,12 +265,12 @@
         }
 
         /**
-         * @see AccessControlManager#getEffectivePolicies(String)
+         * @see javax.jcr.security.AccessControlManager#getEffectivePolicies(String)
          */
         public AccessControlPolicy[] getEffectivePolicies(String absPath) throws
                 PathNotFoundException, AccessDeniedException, RepositoryException {
-            // TODO
-            throw new UnsupportedOperationException();
+            // cannot determine the effective policies for the system session.
+            return new AccessControlPolicy[0];
         }
     }
 }



Mime
View raw message