taylor 2004/10/21 11:40:31 Modified: jetspeed-api/src/java/org/apache/jetspeed/profiler Profiler.java Log: new apis for managing 1..n Principal Rules Revision Changes Path 1.14 +25 -1 jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/profiler/Profiler.java Index: Profiler.java =================================================================== RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/profiler/Profiler.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- Profiler.java 21 Oct 2004 01:47:39 -0000 1.13 +++ Profiler.java 21 Oct 2004 18:40:31 -0000 1.14 @@ -19,6 +19,7 @@ import java.util.Collection; import java.util.Map; +import org.apache.jetspeed.profiler.rules.PrincipalRule; import org.apache.jetspeed.profiler.rules.ProfilingRule; import org.apache.jetspeed.request.RequestContext; @@ -132,6 +133,15 @@ String[] getLocatorNamesForPrincipal(Principal principal); /** + * For a given principal, find all supported locators and return a + * collection of principal rules. + * + * @param principal The given principal. + * @return collection of PrincipalRules + */ + Collection getRulesForPrincipal(Principal principal); + + /** * Gets all supported locators for a principal. * * @param context @@ -154,6 +164,20 @@ * */ void deleteProfilingRule(ProfilingRule rule) + throws ProfilerException; + + /* + * Persist a principal rule to the persistent store. + * + */ + void storePrincipalRule(PrincipalRule rule) + throws ProfilerException; + + /* + * Deletes a principal rule from the persistent store. + * + */ + void deletePrincipalRule(PrincipalRule rule) throws ProfilerException; }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]