You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2004/09/20 19:16:42 UTC
cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/profiler Profiler.java
taylor 2004/09/20 10:16:42
Modified: jetspeed-api/src/java/org/apache/jetspeed/profiler
Profiler.java
Log:
added api to store profile/principal relationship
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.5 +11 -2 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.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Profiler.java 17 Sep 2004 20:06:53 -0000 1.4
+++ Profiler.java 20 Sep 2004 17:16:42 -0000 1.5
@@ -83,7 +83,16 @@
* @return The rule found or null if not found
*/
ProfilingRule getRuleForPrincipal(Principal principal);
-
+
+ /**
+ * For a given principal, associate a profiling rule to that principal name.
+ * TODO: this API should be secured and require admin role
+ *
+ * @param principal Lookup the profiling rule based on this principal.
+ * @param The rule used to find profiles for this user
+ */
+ void setRuleForPrincipal(Principal principal, ProfilingRule rule);
+
/**
* Lookup the portal's default profiling rule.
*
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org