com.ibm.commerce.order.event

Class OrderSubmitEventListenerImpl

  • java.lang.Object
    • com.ibm.commerce.event.EventComponentConfiguration
      • com.ibm.commerce.event.impl.AbstractECEventListener
        • com.ibm.commerce.order.event.OrderSubmitEventListenerImpl
  • All Implemented Interfaces:
    com.ibm.commerce.event.WCSEventListener, ComponentConfiguration, java.util.EventListener


    public class OrderSubmitEventListenerImpl
    extends com.ibm.commerce.event.impl.AbstractECEventListener
    The OrderSubmitEventListenerImpl is to capture the event. When it captures the event, it will get the order id and store id from the event data. Then call the task command ProcessOrderSubmitEventCmd or ProcessPaymentAuthorizationCompleteEventCmd to process the event.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright field.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      CommandContext getCommandContext()
      This method gets the command context
      java.lang.Class getECEventContainer()
      This method gets the class of ECEEventContainer
      java.util.Set getEvents()
      This method gets a set including the order submit event
      void processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe)
      This method Processes the event
      void setCommandContext(CommandContext context)
      This method sets the command context
      • 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 field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OrderSubmitEventListenerImpl

        public OrderSubmitEventListenerImpl()
    • Method Detail

      • processEvent

        public void processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe)
                          throws java.lang.Exception
        This method Processes the event
        Specified by:
        processEvent in class com.ibm.commerce.event.impl.AbstractECEventListener
        Parameters:
        cbe - The event which will be processed
        Throws:
        java.lang.Exception
      • getECEventContainer

        public java.lang.Class getECEventContainer()
        This method gets the class of ECEEventContainer
        Specified by:
        getECEventContainer in class com.ibm.commerce.event.impl.AbstractECEventListener
        Returns:
        The class of ECEEventContainer
      • getEvents

        public java.util.Set getEvents()
        This method gets a set including the order submit event
        Specified by:
        getEvents in class com.ibm.commerce.event.impl.AbstractECEventListener
        Returns:
        Returns a set including the order submit event
      • getCommandContext

        public CommandContext getCommandContext()
        This method gets the command context
        Returns:
        The command context
      • setCommandContext

        public void setCommandContext(CommandContext context)
        This method sets the command context
        Parameters:
        context - The command context