com.ibm.commerce.me.commands

Class SendShoppingCartCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • SendShoppingCartCmdImpl

        public SendShoppingCartCmdImpl()
    • Method Detail

      • getBuyerId

        public java.lang.Long getBuyerId()
        This method gets the buyer ID.
        Returns:
        buyerId The buyer ID.
      • 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.
      • getProtocolId

        public java.lang.Integer getProtocolId()
        This method gets the protocol ID
        Returns:
        protocolId The protocol ID.
      • performExecute

        public void performExecute()
                            throws ECException
        This method contains the business logic for this command. This method retrieves the CIQuote by using the orderID in a request session and places the quote and view name into response properties.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        CommandException.
        ECException
      • setBuyerId

        public void setBuyerId(java.lang.Long aBuyerId)
        This method sets the buyer ID.
        Parameters:
        aBuyerId - The buyer ID.
      • setOrderId

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

        public void setProtocolId(java.lang.Integer aProtocolId)
        This method sets the protocol ID.
        Parameters:
        aProtocolId - The protocol 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 ControllerCommand implementer 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
      • validateParameters

        public void validateParameters()
                                throws ECException
        ControllerCommandImpl calls checkParameter in performExecute. It is the responsibility of the command writers to implement this method if they want to perform server side parameter checking. The following parameters are verified:
        • orderID
        • userID
        • sessionID
        In this implementation only basic parameter checking is done and the rest is left for each task commands to authenticate.
        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECException.
        ECException