taylor 2004/12/22 09:51:05 Modified: jetspeed-api/src/java/org/apache/jetspeed/security GroupManager.java RoleManager.java Log: http://nagoya.apache.org/jira/browse/JS2-175 Added APIs to query for groups and roles
PR: CVS: ---------------------------------------------------------------------- CVS: PR: CVS: If this change addresses a PR in the problem report tracking CVS: database, then enter the PR number(s) here. CVS: Obtained from: CVS: If this change has been taken from another system, such as NCSA, CVS: then name the system in this line, otherwise delete it. CVS: Submitted by: CVS: If this code has been contributed to Apache by someone else; i.e., CVS: they sent us a patch or a new module, then include their name/email CVS: address here. If this is your work then delete this line. CVS: Reviewed by: CVS: If we are doing pre-commit code reviews and someone else has CVS: reviewed your changes, include their name(s) here. CVS: If you have not had it reviewed then delete this line. Revision Changes Path 1.3 +9 -0 jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/GroupManager.java Index: GroupManager.java =================================================================== RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/GroupManager.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- GroupManager.java 19 Sep 2004 19:04:11 -0000 1.2 +++ GroupManager.java 22 Dec 2004 17:51:05 -0000 1.3 @@ -15,6 +15,7 @@ package org.apache.jetspeed.security; import java.util.Collection; +import java.util.Iterator; /** * <p> @@ -156,4 +157,12 @@ */ boolean isUserInGroup(String username, String groupFullPathName) throws SecurityException; + /** + * Get all groups available from all group handlers + * + * @param filter The filter used to retrieve matching groups. + * @return all groups available as [EMAIL PROTECTED] Principal} + */ + Iterator getGroups(String filter) throws SecurityException; + } 1.3 +8 -0 jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/RoleManager.java Index: RoleManager.java =================================================================== RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/security/RoleManager.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- RoleManager.java 19 Sep 2004 19:04:11 -0000 1.2 +++ RoleManager.java 22 Dec 2004 17:51:05 -0000 1.3 @@ -14,6 +14,7 @@ */ package org.apache.jetspeed.security; +import java.util.Iterator; import java.util.Collection; /** @@ -150,4 +151,11 @@ */ boolean isGroupInRole(String groupFullPathName, String roleFullPathName) throws SecurityException; + /** + * Get all roles available from all role handlers + * + * @param filter The filter used to retrieve matching roles. + * @return all roles available as [EMAIL PROTECTED] Principal} + */ + Iterator getRoles(String filter) throws SecurityException; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]