You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by fm...@apache.org on 2008/03/12 13:12:21 UTC
svn commit: r636291 - in
/incubator/sling/trunk/api/src/main/java/org/apache/sling/api:
resource/ResourceResolver.java scripting/SlingScriptResolver.java
servlets/ServletResolver.java
Author: fmeschbe
Date: Wed Mar 12 05:12:17 2008
New Revision: 636291
URL: http://svn.apache.org/viewvc?rev=636291&view=rev
Log:
SLING-319 Remove declaration of AccessControlException from signatures as this
exception will not be thrown any more from these methods.
Modified:
incubator/sling/trunk/api/src/main/java/org/apache/sling/api/resource/ResourceResolver.java
incubator/sling/trunk/api/src/main/java/org/apache/sling/api/scripting/SlingScriptResolver.java
incubator/sling/trunk/api/src/main/java/org/apache/sling/api/servlets/ServletResolver.java
Modified: incubator/sling/trunk/api/src/main/java/org/apache/sling/api/resource/ResourceResolver.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/api/src/main/java/org/apache/sling/api/resource/ResourceResolver.java?rev=636291&r1=636290&r2=636291&view=diff
==============================================================================
--- incubator/sling/trunk/api/src/main/java/org/apache/sling/api/resource/ResourceResolver.java (original)
+++ incubator/sling/trunk/api/src/main/java/org/apache/sling/api/resource/ResourceResolver.java Wed Mar 12 05:12:17 2008
@@ -52,9 +52,6 @@
* @param request The http servlet request object used to resolve the
* resource for.
* @return The {@link Resource} for the request.
- * @throws java.security.AccessControlException if the user authenticated with the request
- * does not have enough rights to access the resource to which
- * the request maps.
* @throws org.apache.sling.api.SlingException A subclass of this exception is thrown if the
* resource to which the request maps cannot be retrieved.
*/
@@ -77,9 +74,6 @@
* @param absPath The absolute path to be mapped to a resource.
* @return The {@link Resource} mapped from the path or <code>null</code>
* if no resource can be found for the path.
- * @throws java.security.AccessControlException if the user authenticated with the request
- * does not have enough rights to access the resource to which
- * the request maps.
* @throws org.apache.sling.api.SlingException A subclass of this exception is thrown if the
* resource to which the request maps cannot be retrieved.
*/
@@ -121,9 +115,6 @@
* relative path to a resource.
* @return The <code>Resource</code> object loaded from the path or
* <code>null</code> if the path does not resolve to a resource.
- * @throws java.security.AccessControlException if an item exists at the <code>path</code>
- * but the session of this resource manager has no read access
- * to the item.
* @throws org.apache.sling.api.SlingException If an error occurrs trying to load the resource
* object from the path.
*/
@@ -151,9 +142,6 @@
* this method.
* @return The <code>Resource</code> object loaded from the path or
* <code>null</code> if the path does not resolve to a resource.
- * @throws java.security.AccessControlException if an item exists at the <code>path</code>
- * but the session of this resource manager has no read access
- * to the item.
* @throws org.apache.sling.api.SlingException If an error occurrs trying to load the resource
* object from the path or if <code>base</code> is
* <code>null</code> and <code>path</code> is relative.
Modified: incubator/sling/trunk/api/src/main/java/org/apache/sling/api/scripting/SlingScriptResolver.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/api/src/main/java/org/apache/sling/api/scripting/SlingScriptResolver.java?rev=636291&r1=636290&r2=636291&view=diff
==============================================================================
--- incubator/sling/trunk/api/src/main/java/org/apache/sling/api/scripting/SlingScriptResolver.java (original)
+++ incubator/sling/trunk/api/src/main/java/org/apache/sling/api/scripting/SlingScriptResolver.java Wed Mar 12 05:12:17 2008
@@ -56,8 +56,6 @@
* @param name The script name. Must not be <code>null</code>.
* @return The {@link SlingScript} to which the name resolved or
* <code>null</code> otherwise.
- * @throws java.security.AccessControlException If the requested script cannot be accessed
- * due to access control restrictions.
* @throws org.apache.sling.api.SlingException If an error occurrs trying to resolve the name.
*/
SlingScript findScript(ResourceResolver resourceResolver, String name);
Modified: incubator/sling/trunk/api/src/main/java/org/apache/sling/api/servlets/ServletResolver.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/api/src/main/java/org/apache/sling/api/servlets/ServletResolver.java?rev=636291&r1=636290&r2=636291&view=diff
==============================================================================
--- incubator/sling/trunk/api/src/main/java/org/apache/sling/api/servlets/ServletResolver.java (original)
+++ incubator/sling/trunk/api/src/main/java/org/apache/sling/api/servlets/ServletResolver.java Wed Mar 12 05:12:17 2008
@@ -47,9 +47,6 @@
* selection of the servlet.
* @return The servlet whose <code>service</code> method may be called to
* handle the request.
- * @throws java.security.AccessControlException If the script to which the request
- * resolves cannot be accessed due to access control
- * restrictions.
* @throws org.apache.sling.api.SlingException Is thrown if an error occurrs while trying to find
* an appropriate servlet to handle the request or if no servlet
* could be resolved to handle the request.