portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r412614 - /portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java
Date Thu, 08 Jun 2006 00:01:32 GMT
Author: taylor
Date: Wed Jun  7 17:01:32 2006
New Revision: 412614

URL: http://svn.apache.org/viewvc?rev=412614&view=rev
Log:
add apis for permission editor

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/viewvc/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java?rev=412614&r1=412613&r2=412614&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
Wed Jun  7 17:01:32 2006
@@ -18,6 +18,7 @@
 import java.security.Permissions;
 import java.security.Principal;
 import java.util.Collection;
+import java.util.Iterator;
 
 import javax.security.auth.Subject;
 
@@ -141,4 +142,19 @@
      */
     boolean checkPermission(Subject subject, Permission permission);
     
+    /**
+     * Retrieve a list of all Permissions in the system ordered by Permission Type, resource
+     * 
+     * @return A list of type InternalPermission
+     */
+    Iterator getPermissions();    
+    
+    /**
+     * Retrieve a list of all Permissions in the system for a given resource
+     * The resource can be a prefix, for example "j2-admin" will retrieve all 
+     * portlet permissions starting with j2-admin
+     * 
+     * @return A list of type InternalPermission
+     */
+    Iterator getPermissions(String classname, String resource);    
 }



---------------------------------------------------------------------
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