com.ibm.commerce.marketingcenter.events.runtime

Class CampaignLoggingECEventListenerImpl

  • java.lang.Object
    • com.ibm.commerce.event.EventComponentConfiguration
      • com.ibm.commerce.event.impl.AbstractECEventListener
        • com.ibm.commerce.marketingcenter.events.runtime.CampaignLoggingECEventListenerImpl
  • All Implemented Interfaces:
    com.ibm.commerce.event.WCSEventListener, com.ibm.commerce.server.ComponentConfiguration, java.util.EventListener


    public class CampaignLoggingECEventListenerImpl
    extends com.ibm.commerce.event.impl.AbstractECEventListener
    This Campaign Logging Event Listener listens for Common Base Events (CBE) and processes only campaign logging events. The campaign log and statistics tables are updated with the campaign log information.

    When customizing the campaign statistics, this class needs to be extended to persist the customer's actions to the CPGNLOG logging table by doing the following:

    1. Extend CampaignLoggingECEventListenerImpl and override the method void processCampaignLoggingEvent(CampaignLoggingDataBean) to update the CPGNSTATS and CPGNLOG tables.
    2. Change your WebSphere Commerce configuration file, for example instance_name.xml, to load the extended listener class instead of CampaignLoggingECEventListenerImpl
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      CampaignLoggingECEventListenerImpl()
      This constructor creates an instance of the campaign logging event listener.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Class getECEventContainer()
      This method returns the class CampaignLoggingEventContainer as the event container.
      java.util.Set getEvents()
      This method returns a set containing the extension name for the campaign logging event.
      void processEvent(CommonBaseEvent commonBaseEvent)
      This method processes campaign logging common base events.
      void setTestData(CampaignLoggingDataBean campaignLogData)
      Reserved for IBM internal use.
      • Methods inherited from class com.ibm.commerce.event.impl.AbstractECEventListener

        destroy, enable, getEventContainers, isTransactionRequired, processActivityEvent, registerEventContainer
      • Methods inherited from class com.ibm.commerce.event.EventComponentConfiguration

        init
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CampaignLoggingECEventListenerImpl

        public CampaignLoggingECEventListenerImpl()
        This constructor creates an instance of the campaign logging event listener. This constructor calls the superclass then sets values if the database type is DB2 and if tracing is enabled for the marketing component.
    • Method Detail

      • getECEventContainer

        public java.lang.Class getECEventContainer()
        This method returns the class CampaignLoggingEventContainer as the event container.
        Specified by:
        getECEventContainer in class com.ibm.commerce.event.impl.AbstractECEventListener
        Returns:
        The CampaignLoggingEventContainer class.
        See Also:
        AbstractECEventListener.getECEventContainer()
      • getEvents

        public java.util.Set getEvents()
        This method returns a set containing the extension name for the campaign logging event.
        Specified by:
        getEvents in class com.ibm.commerce.event.impl.AbstractECEventListener
        Returns:
        A set with only the CampaignLogging event extension name.
        See Also:
        AbstractECEventListener.getEvents()
      • processEvent

        public void processEvent(CommonBaseEvent commonBaseEvent)
        This method processes campaign logging common base events.
        Specified by:
        processEvent in class com.ibm.commerce.event.impl.AbstractECEventListener
        Parameters:
        commonBaseEvent - The common base event to process.
        See Also:
        processCampaignLoggingEvent(CommonBaseEvent), AbstractECEventListener.processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent)
      • setTestData

        public void setTestData(CampaignLoggingDataBean campaignLogData)
        Reserved for IBM internal use.
        Parameters:
        campaignLogData - Reserved for IBM internal use.