jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r651189 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SystemSession.java
Date Thu, 24 Apr 2008 08:08:16 GMT
Author: angela
Date: Thu Apr 24 01:08:13 2008
New Revision: 651189

URL: http://svn.apache.org/viewvc?rev=651189&view=rev
Log:
AccessManager: improve javadoc and consistency of method declaration (throw clause)

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=651189&r1=651188&r2=651189&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
Thu Apr 24 01:08:13 2008
@@ -127,8 +127,7 @@
          * @throws RepositoryException   is never thrown
          */
         public void checkPermission(ItemId id, int permissions)
-                throws AccessDeniedException, ItemNotFoundException,
-                RepositoryException {
+                throws AccessDeniedException, RepositoryException {
             // allow everything
         }
 
@@ -139,8 +138,7 @@
          * @throws ItemNotFoundException is never thrown
          * @throws RepositoryException   is never thrown
          */
-        public boolean isGranted(ItemId id, int permissions)
-                throws ItemNotFoundException, RepositoryException {
+        public boolean isGranted(ItemId id, int permissions) throws RepositoryException {
             // allow everything
             return true;
         }
@@ -160,7 +158,7 @@
          *
          * @see AccessManager#isGranted(Path, Name, int) 
          */
-        public boolean isGranted(Path parentPath, Name childName, int permissions) throws
ItemNotFoundException, RepositoryException {
+        public boolean isGranted(Path parentPath, Name childName, int permissions) throws
RepositoryException {
             // allow everything
             return true;
         }
@@ -171,7 +169,7 @@
          * @see AccessManager#canRead(Path)
          * @param itemPath
          */
-        public boolean canRead(Path itemPath) throws ItemNotFoundException, RepositoryException
{
+        public boolean canRead(Path itemPath) throws RepositoryException {
             return true;
         }
 
@@ -182,8 +180,7 @@
          * @throws NoSuchWorkspaceException is never thrown
          * @throws RepositoryException      is never thrown
          */
-        public boolean canAccess(String workspaceName)
-                throws NoSuchWorkspaceException, RepositoryException {
+        public boolean canAccess(String workspaceName) throws RepositoryException {
             return true;
         }
     }



Mime
View raw message