public class GuestUserOrderResetEventListener
extends com.ibm.commerce.event.EventComponentConfiguration
implements com.ibm.commerce.event.WCSEventListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
GuestUserOrderResetEventListener() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This method destroys the event listener by removing it from the
WCSEventSource . |
void |
enable(boolean val)
This method enables the event listener by registering the listener to listen for
the
GuestUserMigrationEvent . |
boolean |
isTransactionRequired()
This method indicates that a transaction is always required.
|
void |
processActivityEvent(com.ibm.commerce.event.WCSEvent event)
This method processes the event by invoking the GuestUserOrderResetCmd to perform the following task:
Set all the pending order of the previous guest user to the current guest user.
|
public static final java.lang.String COPYRIGHT
public void destroy()
WCSEventSource
.destroy
in interface ComponentConfiguration
destroy
in class com.ibm.commerce.event.EventComponentConfiguration
EventComponentConfiguration.destroy()
public void enable(boolean val) throws java.lang.Exception
GuestUserMigrationEvent
. If the listener is to be disabled, it will
remove the listener from the WCSEventSource.enable
in interface ComponentConfiguration
enable
in class com.ibm.commerce.event.EventComponentConfiguration
val
- Whether the event listener is enabled or disabled.java.lang.Exception
- This method will never thrown an exception.EventComponentConfiguration.enable(boolean)
public boolean isTransactionRequired()
isTransactionRequired
in interface com.ibm.commerce.event.WCSEventListener
WCSEventListener.isTransactionRequired()
public void processActivityEvent(com.ibm.commerce.event.WCSEvent event) throws ECException
processActivityEvent
in interface com.ibm.commerce.event.WCSEventListener
event
- The guest user migrate event.ECException
WCSEventListener.processActivityEvent(com.ibm.commerce.event.WCSEvent)