com.ibm.commerce.location.facade.server.commands

Class DispatchClientLocationEventCmdImpl

  • java.lang.Object
    • com.ibm.commerce.location.facade.server.commands.DispatchClientLocationEventCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.foundation.celadon.common.oagis.CeladonDataServiceEventListenerCmd, DispatchClientLocationEventCmd, com.ibm.websphere.command.Command, java.io.Serializable


    public class DispatchClientLocationEventCmdImpl
    extends java.lang.Object
    implements DispatchClientLocationEventCmd
    Implementation of the Dispatch command, which determines whether the Marketing Engine should be invoked for an incoming ClientLocation based on decision logic in the MarketingEngineDecision class.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface com.ibm.websphere.command.Command

        serialVersionUID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void execute()
      Execute method invokes the marketing engine.
      boolean isReadyToCallExecute()
      Make sure the client location noun has been set
      void reset()
      Resets the state of the command
      void setClientLocation(ClientLocationType clientLocation)
      Set the client location
      void setEvent(com.ibm.commerce.foundation.celadon.core.datatypes.DataServiceEventType event)
      Set the client location from a Celadon event
      • Methods inherited from class java.lang.Object

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

      • DispatchClientLocationEventCmdImpl

        public DispatchClientLocationEventCmdImpl()
        Constructor
    • Method Detail

      • setEvent

        public void setEvent(com.ibm.commerce.foundation.celadon.core.datatypes.DataServiceEventType event)
        Set the client location from a Celadon event
        Specified by:
        setEvent in interface com.ibm.commerce.foundation.celadon.common.oagis.CeladonDataServiceEventListenerCmd
        Parameters:
        event - The Celadon event (that is carrying the client location)
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Make sure the client location noun has been set
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Returns:
        True if the client location has been set
      • execute

        public void execute()
                     throws com.ibm.websphere.command.CommandException
        Execute method invokes the marketing engine.
        Specified by:
        execute in interface com.ibm.websphere.command.Command
        Throws:
        com.ibm.websphere.command.CommandException
      • reset

        public void reset()
        Resets the state of the command
        Specified by:
        reset in interface com.ibm.websphere.command.Command