Class SubmitShoppingCartCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, SubmitShoppingCartCmd, Protectable,,,,,,

    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


        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.
        errorTask The error task name
      • getOrderId

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

        public java.lang.String getViewTask()
        This method gets the view task name.
        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
        performExecute in class AbstractECTargetableCommand
      • setOrderId

        public void setOrderId(java.lang.Long orderId)
        This method sets the order ID.
        Specified by:
        setOrderId in interface SubmitShoppingCartCmd
        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
        setRequestProperties in class ControllerCommandImpl
        requestProperties -