portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r381250 - /portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/impl/JetspeedProfilerImpl.java
Date Mon, 27 Feb 2006 03:52:27 GMT
Author: taylor
Date: Sun Feb 26 19:52:25 2006
New Revision: 381250

URL: http://svn.apache.org/viewcvs?rev=381250&view=rev
Log:
avoid extra database hit when no principal-profile rule defined

Modified:
    portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/impl/JetspeedProfilerImpl.java

Modified: portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/impl/JetspeedProfilerImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/impl/JetspeedProfilerImpl.java?rev=381250&r1=381249&r2=381250&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/impl/JetspeedProfilerImpl.java
(original)
+++ portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/impl/JetspeedProfilerImpl.java
Sun Feb 26 19:52:25 2006
@@ -251,6 +251,11 @@
                 // if not found, fallback to the system wide rule
                 rule = getDefaultRule();
             }
+            pr = new PrincipalRuleImpl();
+            pr.setLocatorName(locatorName);
+            pr.setPrincipalName(principal.getName());
+            pr.setProfilingRule(rule);
+            principalRules.put(makePrincipalRuleKey(principal.getName(), locatorName), pr);
           
         }
         else
         {



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