portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r327608 - /portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java
Date Fri, 21 Oct 2005 23:36:25 GMT
Author: taylor
Date: Fri Oct 21 16:36:23 2005
New Revision: 327608

URL: http://svn.apache.org/viewcvs?rev=327608&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-384
abstract Permission Manager checkPermission operation
in putting this to use in portlet filtering, 
it seemed easier for user to simply check return status instead of exceptions everytime

Modified:
    portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java

Modified: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java?rev=327608&r1=327607&r2=327608&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java
(original)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java
Fri Oct 21 16:36:23 2005
@@ -136,8 +136,9 @@
      * 
      * @param subject The Java subject.
      * @param permission The permission, usually a portlet, page or folder type permission.
-     * @throws Throws a security exception.
+     * @return true if the subject has access to the permission protected resource, false
+     *         if the subject does not have access.
      */
-    void checkPermission(Subject subject, Permission permission) throws SecurityException;
+    boolean checkPermission(Subject subject, Permission permission);
     
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message