[Yanel-commits] rev 58894 - in public/yanel/trunk/src/core/java/org/wyona/yanel/core/attributes: . tracking
michi at wyona.com
michi at wyona.com
Fri Jun 24 14:29:14 CEST 2011
Author: michi
Date: 2011-06-24 14:29:13 +0200 (Fri, 24 Jun 2011)
New Revision: 58894
Added:
public/yanel/trunk/src/core/java/org/wyona/yanel/core/attributes/tracking/
public/yanel/trunk/src/core/java/org/wyona/yanel/core/attributes/tracking/TrackingInformationV1.java
Log:
tracking information bean added
Added: public/yanel/trunk/src/core/java/org/wyona/yanel/core/attributes/tracking/TrackingInformationV1.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/attributes/tracking/TrackingInformationV1.java (rev 0)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/attributes/tracking/TrackingInformationV1.java 2011-06-24 12:29:13 UTC (rev 58894)
@@ -0,0 +1,74 @@
+package org.wyona.yanel.core.attributes.tracking;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+
+/**
+ * Bean containing tracking information such as tags, page type, request action, etc.
+ */
+public class TrackingInformationV1 {
+
+ private List<String> tags = new ArrayList();
+ private String pageType;
+ private String requestAction;
+ private HashMap<String, String> hm = new HashMap();
+
+ /**
+ * Get tags
+ */
+ public String[] getTags() {
+ return (String[])tags.toArray(new String[tags.size()]);
+ }
+
+ /**
+ * Add tag
+ */
+ public void addTag(String tag) {
+ tags.add(tag);
+ }
+
+ /**
+ * Get page type
+ */
+ public String getPageType() {
+ return pageType;
+ }
+
+ /**
+ * Set page type
+ */
+ public void setPageType(String pageType) {
+ this.pageType = pageType;
+ }
+
+ /**
+ * Get request action
+ */
+ public String getRequestAction() {
+ return requestAction;
+ }
+
+ /**
+ * Set request action
+ */
+ public void setRequestAction(String requestAction) {
+ this.requestAction = requestAction;
+ }
+
+ /**
+ * Get custom key/value pairs
+ */
+ public HashMap<String, String> getCustomFields() {
+ return hm;
+ }
+
+ /**
+ * Add custom key/value pair
+ * @param key Key/Name with which the specified value is to be associated.
+ * @param value Value to be associated with the specified key.
+ */
+ public void addCustomField(String key, String value) {
+ hm.put(key, value);;
+ }
+}
More information about the Yanel-commits
mailing list