com.ibm.commerce.marketingcenter.events.runtime
Class MktgEventService
java.lang.Object
com.ibm.commerce.marketingcenter.events.runtime.MktgEventService
- public class MktgEventService
- extends java.lang.Object
This class defines the set of events that can be handled, and invokes the specific handler to handle the event. This class is primarily used as a target of controller/task commands that capture click events (allows reuse of those commands). It can be called in a runtime component as well (the alternative is to go to the database objects themselves and persist the event directly).
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
static java.lang.String |
EVTYPE_CPGN_CLICK
Generic - an initiative was clicked on. |
static java.lang.String |
EVTYPE_CPGN_RECOMMENDATION
The rule services ran and recommended stuff (for example: product, awareness advertisement, html fragment, hotmedia, promotion, etc..). |
static java.lang.String |
EVTYPE_PA_METAPHOR_INVOKED
A Product Advisor metaphor (Product Comparison, Product Explorer, Sales Assistant) was invoked. |
static java.lang.String |
EVTYPE_PC_PRODDISP_CLICK
Product Display was invoked through a click on Product Comparison. |
static java.lang.String |
EVTYPE_PC_PRODUCT_SHOWN
At least one product was shown to the shopper. |
static java.lang.String |
EVTYPE_PE_CONSTRAINT_SEARCH
A search was performed based on a specified constraint. |
static java.lang.String |
EVTYPE_SA_USERANSWER
A particular survey question (aka concept) was answered. |
Method Summary |
static void |
addClick(java.lang.String evtype, java.util.Hashtable h)
Handles click events. |
static void |
addClick(java.lang.String evtype, TypedProperty tp)
Handles click events. |
static void |
addClick(java.lang.String evtype, TypedProperty tp, java.lang.Integer storeIdentifier)
Handles click events. |
static void |
addEvent(java.lang.String evtype, java.util.Hashtable h)
Handles non-click events. |
static void |
addEvent(java.lang.String evtype, TypedProperty tp)
Handles non-click events. |
static void |
addEvent(java.lang.String evtype, TypedProperty tp, java.lang.Integer storeIdentifier)
Handles non-click events. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
- Constant Field Values
EVTYPE_CPGN_CLICK
public static final java.lang.String EVTYPE_CPGN_CLICK
- Generic - an initiative was clicked on. Set to CpgnClick.
- See Also:
- Constant Field Values
EVTYPE_CPGN_RECOMMENDATION
public static final java.lang.String EVTYPE_CPGN_RECOMMENDATION
- The rule services ran and recommended stuff (for example: product, awareness advertisement, html fragment, hotmedia, promotion, etc..). Set to CpgnLog.
- See Also:
- Constant Field Values
EVTYPE_PA_METAPHOR_INVOKED
public static final java.lang.String EVTYPE_PA_METAPHOR_INVOKED
- A Product Advisor metaphor (Product Comparison, Product Explorer, Sales Assistant) was invoked. Set to PaInvoked.
- See Also:
- Constant Field Values
EVTYPE_PC_PRODUCT_SHOWN
public static final java.lang.String EVTYPE_PC_PRODUCT_SHOWN
- At least one product was shown to the shopper. Set to PcProdDisp.
- See Also:
- Constant Field Values
EVTYPE_PC_PRODDISP_CLICK
public static final java.lang.String EVTYPE_PC_PRODDISP_CLICK
- Product Display was invoked through a click on Product Comparison. Set to PcProdDispClick.
- See Also:
- Constant Field Values
EVTYPE_PE_CONSTRAINT_SEARCH
public static final java.lang.String EVTYPE_PE_CONSTRAINT_SEARCH
- A search was performed based on a specified constraint. set to PeConstraintSearch.
- See Also:
- Constant Field Values
EVTYPE_SA_USERANSWER
public static final java.lang.String EVTYPE_SA_USERANSWER
- A particular survey question (aka concept) was answered. Set to SaAnswer.
- See Also:
- Constant Field Values
MktgEventService
public MktgEventService()
- Constructs a MktgEventService object.
addClick
public static void addClick(java.lang.String evtype,
TypedProperty tp)
- Handles click events. The keys in the TypedProperty should be the same as the column names in the database table. What is actually contained in the TypedProperty is dependent on what the handler class does but in general, it should contain the components of the primary key (since we are likely updating a click counter).
-
- Parameters:
- evtype - An event type defined in MktgEventService class
- tp - A TypedProperty containing all the relevant information to process the event.
addClick
public static void addClick(java.lang.String evtype,
TypedProperty tp,
java.lang.Integer storeIdentifier)
- Handles click events. The keys in the TypedProperty should be the same as the column names in the database table. What is actually contained in the TypedProperty is dependent on what the handler class does but in general, it should contain the components of the primary key (since we are likely updating a click counter).
-
- Parameters:
- evtype - An event type defined in MktgEventService class
- tp - A TypedProperty containing all the relevant information to process the event.
- storeIdentifier - The store id.
addClick
public static void addClick(java.lang.String evtype,
java.util.Hashtable h)
- Handles click events. The keys in the Hashtable should be the same as the column names in the database table. What is actually contained in the Hashtable is dependent on what the handler class does but in general, it should contain the components of the primary key (since we are likely updating a click counter).
-
- Parameters:
- evtype - An event type defined in MktgEventService class
- h - A Hashtable containing all the relevant information to process the event.
addEvent
public static void addEvent(java.lang.String evtype,
TypedProperty tp)
- Handles non-click events. The keys in the TypedProperty should be the same as the column names in the database table. What is actually contained in the TypedProperty is dependent on what the handler class does. For example, if events are captured in a log, then the Hashtable should contain all the information to populate a row within the database table.
-
- Parameters:
- evtype - An event type defined in MktgEventService class
- tp - A TypedProperty containing all the relevant information to process the event.
addEvent
public static void addEvent(java.lang.String evtype,
TypedProperty tp,
java.lang.Integer storeIdentifier)
- Handles non-click events. The keys in the TypedProperty should be the same as the column names in the database table. What is actually contained in the TypedProperty is dependent on what the handler class does. For example, if events are captured in a log, then the Hashtable should contain all the information to populate a row within the database table.
-
- Parameters:
- evtype - An event type defined in MktgEventService class
- tp - A TypedProperty containing all the relevant information to process the event.
- storeIdentifier - The store id.
addEvent
public static void addEvent(java.lang.String evtype,
java.util.Hashtable h)
- Handles non-click events. The keys in the Hashtable should be the same as the column names in the database table. What is actually contained in the Hashtable is dependent on what the handler class does. For example, if events are captured in a log, then the Hashtable should contain all the information to populate a row within the database table.
-
- Parameters:
- evtype - An event type defined in MktgEventService class.
- h - A Hashtable containing all the relevant information to process the event.
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.