com.ibm.commerce.wallet.event

Class WalletGuestUserMigrationEventListener

  • java.lang.Object
    • com.ibm.commerce.event.EventComponentConfiguration
      • com.ibm.commerce.wallet.event.WalletGuestUserMigrationEventListener
  • All Implemented Interfaces:
    com.ibm.commerce.event.WCSEventListener, ComponentConfiguration, java.util.EventListener


    public class WalletGuestUserMigrationEventListener
    extends com.ibm.commerce.event.EventComponentConfiguration
    implements com.ibm.commerce.event.WCSEventListener
    GuestUserMigrationEvent listener that migrates the user's wallet from the old user to the new user.
    • Field Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void destroy()
      Destroys the event listener.
      void enable(boolean val)
      Enables or disables the event listener.
      boolean isTransactionRequired()
      Returns whether a transaction is required.
      void processActivityEvent(com.ibm.commerce.event.WCSEvent ae)
      Migrates the user's wallet from the old user to the new user.
      • 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

      • WalletGuestUserMigrationEventListener

        public WalletGuestUserMigrationEventListener()
        Default constructor.
    • Method Detail

      • enable

        public void enable(boolean val)
                    throws java.lang.Exception
        Enables or disables the event listener.
        Specified by:
        enable in interface ComponentConfiguration
        Specified by:
        enable in class com.ibm.commerce.event.EventComponentConfiguration
        Parameters:
        val - Whether the event listener should be enabled or disabled.
        Throws:
        java.lang.Exception
      • destroy

        public void destroy()
        Destroys the event listener.
        Specified by:
        destroy in interface ComponentConfiguration
        Specified by:
        destroy in class com.ibm.commerce.event.EventComponentConfiguration
      • isTransactionRequired

        public boolean isTransactionRequired()
        Returns whether a transaction is required.
        Specified by:
        isTransactionRequired in interface com.ibm.commerce.event.WCSEventListener
        Returns:
        True.
      • processActivityEvent

        public void processActivityEvent(com.ibm.commerce.event.WCSEvent ae)
                                  throws ECException
        Migrates the user's wallet from the old user to the new user.
        Specified by:
        processActivityEvent in interface com.ibm.commerce.event.WCSEventListener
        Parameters:
        ae - The event.
        Throws:
        ECException