portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r331561 - /portals/jetspeed-2/trunk/applications/pam/src/java/org/apache/jetspeed/portlets/statistics/StatisticsPortlet.java
Date Mon, 07 Nov 2005 18:10:32 GMT
Author: taylor
Date: Mon Nov  7 10:10:30 2005
New Revision: 331561

URL: http://svn.apache.org/viewcvs?rev=331561&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-362

clean up, still work in progress, should finish up today

Modified:
    portals/jetspeed-2/trunk/applications/pam/src/java/org/apache/jetspeed/portlets/statistics/StatisticsPortlet.java

Modified: portals/jetspeed-2/trunk/applications/pam/src/java/org/apache/jetspeed/portlets/statistics/StatisticsPortlet.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/pam/src/java/org/apache/jetspeed/portlets/statistics/StatisticsPortlet.java?rev=331561&r1=331560&r2=331561&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/pam/src/java/org/apache/jetspeed/portlets/statistics/StatisticsPortlet.java
(original)
+++ portals/jetspeed-2/trunk/applications/pam/src/java/org/apache/jetspeed/portlets/statistics/StatisticsPortlet.java
Mon Nov  7 10:10:30 2005
@@ -55,8 +55,12 @@
         Context velocityContext = getContext(request);
         PortletSession session = request.getPortletSession();
         
-        StatisticsQueryCriteria test = new StatisticsQueryCriteriaImpl();
-        test.setQueryType("user");
+        
+        StatisticsQueryCriteria test = (StatisticsQueryCriteria) session.getAttribute(SESSION_CRITERIA);
+        if(test == null) {
+            test = new StatisticsQueryCriteriaImpl();
+            test.setQueryType("user");
+        }
         session.setAttribute(SESSION_CRITERIA,test);
         
         StatisticsQueryCriteria sqc = (StatisticsQueryCriteria)session.getAttribute(SESSION_CRITERIA);
@@ -85,8 +89,8 @@
         StatisticsQueryCriteria criteria = new StatisticsQueryCriteriaImpl();
         String user = request.getParameter("user");
         criteria.setUser(user);
-        String address = request.getParameter("address");
-        criteria.setIpAddress(address);
+        String timeperiod = request.getParameter("timeperiod");
+        criteria.setTimePeriod(timeperiod);
         String queryType = request.getParameter("queryType");
         
         criteria.setQueryType(queryType);



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