com.ibm.commerce.me.commands

Class SubmitShoppingCartCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, SubmitShoppingCartCmd, Protectable, 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


    public class SubmitShoppingCartCmdImpl
    extends ControllerCommandImpl
    implements SubmitShoppingCartCmd
    This is the implementation of the SubmitShoppingCart command. The SubmitShoppingCart command is invoked when the procurement buyer submits or checks out their order during catalog browsing. This command changes the status of the order and order items to W (awaiting approval) from P (pending). Together with the SendShoppingCart command, the SubmitShoppingCart command alters the shopping flow to send the procurement buyer order to the procurement system.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        Copyright statement.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SubmitShoppingCartCmdImpl

        public SubmitShoppingCartCmdImpl()
    • Method Detail

      • getErrorTask

        public java.lang.String getErrorTask()
        This method gets the error task name.
        Returns:
        errorTask The error task name
      • getOrderId

        public java.lang.Long getOrderId()
        This method gets the order ID.
        Returns:
        orders_Id The order ID.
      • getViewTask

        public java.lang.String getViewTask()
        This method gets the view task name.
        Returns:
        viewTask The view task name
      • performExecute

        public void performExecute()
                            throws ECException
        This method changes the status order in the orders and order items table from status pending (P) to waiting approval (W). This occurs when submitting the shopping cart or order to the Procurement System for approval.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        CommandException.
        ECException
      • setOrderId

        public void setOrderId(java.lang.Long orderId)
        This method sets the order ID.
        Specified by:
        setOrderId in interface SubmitShoppingCartCmd
        Parameters:
        orderId - The order ID
      • setRequestProperties

        public void setRequestProperties(TypedProperty p)
                                  throws ECException
        The Web controller calls the setRequestProperties method before invoking the execute method in this command. It is the responsibility of the implementer of the ControllerCommand to extract the required input parameters from the request properties and perform parameter checking. Three mandatory parameters should be set before calling this command:
         1. orderRefNumber
              2. userID
              3. password
        
        Specified by:
        setRequestProperties in interface ControllerCommand
        Overrides:
        setRequestProperties in class ControllerCommandImpl
        Parameters:
        requestProperties - com.ibm.commerce.datatype.TypedProperty
        Throws:
        com.ibm.commerce.exception.ECException.
        ECException