portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r526858 - /portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/profiler/ProfileCriterionForm.java
Date Mon, 09 Apr 2007 18:04:23 GMT
Author: taylor
Date: Mon Apr  9 11:04:22 2007
New Revision: 526858

URL: http://svn.apache.org/viewvc?view=rev&rev=526858
Log:
add hostname as valid selection to Profile Criterion form

Modified:
    portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/profiler/ProfileCriterionForm.java

Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/profiler/ProfileCriterionForm.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/profiler/ProfileCriterionForm.java?view=diff&rev=526858&r1=526857&r2=526858
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/profiler/ProfileCriterionForm.java
(original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/profiler/ProfileCriterionForm.java
Mon Apr  9 11:04:22 2007
@@ -66,7 +66,8 @@
             new SelectItem("path.session"),
             new SelectItem("user.attribute"),
             new SelectItem("navigation"),
-            new SelectItem("ip")
+            new SelectItem("ip"),
+            new SelectItem("hostname")
     };
 
     private transient SelectItem[] fallbackTypes =
@@ -259,6 +260,15 @@
             {                
                 criterion.setRuleId(rule.getId());
                 rule.getRuleCriteria().add(criterion);
+            }
+            String value = criterion.getValue();
+            if (value != null)
+            {
+                value = value.trim();
+                if (value.equals(""))
+                {
+                    criterion.setValue(null);
+                }
             }
            profiler.storeProfilingRule(rule);
            isNew = false;



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