java.lang.Object | +--com.ibm.commerce.marketingcenter.events.runtime.MktgEventService
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. |
Constructor Summary | |
---|---|
MktgEventService() Constructs a MktgEventService object. |
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 |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String EVTYPE_CPGN_CLICK
public static final java.lang.String EVTYPE_CPGN_RECOMMENDATION
public static final java.lang.String EVTYPE_PA_METAPHOR_INVOKED
public static final java.lang.String EVTYPE_PC_PRODUCT_SHOWN
public static final java.lang.String EVTYPE_PC_PRODDISP_CLICK
public static final java.lang.String EVTYPE_PE_CONSTRAINT_SEARCH
public static final java.lang.String EVTYPE_SA_USERANSWER
Constructor Detail |
---|
public MktgEventService()
Method Detail |
---|
public static void addClick(java.lang.String evtype, TypedProperty tp)
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).
evtype
- An event type defined in
MktgEventService
classtp
- A TypedProperty
containing all the relevant
information to process the event.public static void addClick(java.lang.String evtype, TypedProperty tp, java.lang.Integer storeIdentifier)
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).
evtype
- An event type defined in
MktgEventService
classtp
- A TypedProperty
containing all the relevant
information to process the event.storeIdentifier
- The store id.public static void addClick(java.lang.String evtype, java.util.Hashtable h)
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).
evtype
- An event type defined in
MktgEventService
classh
- A Hashtable
containing all the relevant
information to process the event.public static void addEvent(java.lang.String evtype, TypedProperty tp)
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.
evtype
- An event type defined in
MktgEventService
classtp
- A TypedProperty
containing all the relevant
information to process the event.public static void addEvent(java.lang.String evtype, TypedProperty tp, java.lang.Integer storeIdentifier)
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.
evtype
- An event type defined in
MktgEventService
classtp
- A TypedProperty
containing all the relevant
information to process the event.storeIdentifier
- The store id.public static void addEvent(java.lang.String evtype, java.util.Hashtable h)
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.
evtype
- An event type defined in
MktgEventService
class.h
- A Hashtable
containing all the relevant
information to process the event.