Class CheckOrderCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, CheckOrderCmd,,,,,,

    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()
        CheckOrderCmdImpl default constructor.
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        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
        isReadyToCallExecute in class AbstractECTargetableCommand
        true if we can execute the command; false otherwise.
      • reset

        public void reset()
        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
        reset in class AbstractECTargetableCommand
      • setOrderId

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