com.ibm.commerce.payment.commands

Class CheckOrderCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CheckOrderCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable

    Deprecated. 
    this command is deprecated and will not be called by the new payments component.

    public class CheckOrderCmdImpl
    extends TaskCommandImpl
    implements CheckOrderCmd
    This CheckOrderCmd Task Command Implementation checks if an Order that is in state "I" (OrderConstants.ORDER_SUBMITTED) has already been processed.

    If the order has an OrdPayMthd entry, the command throws an ECApplicationException with the error code CheckOrderCmd.ERR_CODE_RESUBMIT_NOT_ALLOWED indicating that the order has already been processed. The error view specified in CheckOrderCmd.ERRTASK_NAME is used to display an error page to the shopper.

    This command uses the following AccessBeans:

    This command does not call other TaskCommand.

    See Also:
    Serialized Form
    • Constructor Detail

      • CheckOrderCmdImpl

        public CheckOrderCmdImpl()
        Deprecated. 
        CheckOrderCmdImpl default constructor.
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Deprecated. 
        This method is called by the Command Framework to check if all basic mandatory parameters have been set for this command. This is done before the Framework calls the performExecute method of the command.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        true if we can execute the command; false otherwise.
      • reset

        public void reset()
        Deprecated. 
        Resets the instance variables of the command. The reset() method will reset all instance variables. If the command includes any output values that are accessible via getters, then make sure those values are no longer needed before calling this method to reset the instance variables of the command.

        This is useful if the command instance is to be called multiple times with different command parameters.

        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setOrderId

        public void setOrderId(java.lang.Long orderId)
        Deprecated. 
        Sets the orderId property of the command.
        Specified by:
        setOrderId in interface CheckOrderCmd
        Parameters:
        orderId - the order ID of the Order to check