com.ibm.commerce.tools.optools.order.commands

Class CSROrderPrepareCmdImpl

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • ERRTASK_NAME

        public static java.lang.String ERRTASK_NAME
        Error handling view name for this command.
    • Constructor Detail

      • CSROrderPrepareCmdImpl

        public CSROrderPrepareCmdImpl()
    • Method Detail

      • getCustomerId

        public java.lang.String getCustomerId()
        Returns customer ID.
        Specified by:
        getCustomerId in interface CSROrderPrepareCmd
        Returns:
        The customer ID.
      • getFirstOrderId

        public java.lang.String getFirstOrderId()
        Returns first order ID.
        Specified by:
        getFirstOrderId in interface CSROrderPrepareCmd
        Returns:
        The ID of the first order.
      • getNLS

        public java.util.Hashtable getNLS()
        Returns NLS properties.
        Returns:
        The NLS properties.
      • getOrgCmdContext

        public CommandContext getOrgCmdContext()
        Returns original command context.
        Returns:
        The original command context.
      • getOrgLangId

        public java.lang.Integer getOrgLangId()
        Returns original language ID.
        Returns:
        The original language ID.
      • getOrgLocale

        public java.util.Locale getOrgLocale()
        Returns original Locale.
        Returns:
        The original Locale.
      • getOrgReqProperties

        public TypedProperty getOrgReqProperties()
        Returns original request properties.
        Returns:
        The original request properties.
      • getRedirectURL

        public java.lang.String getRedirectURL()
        Returns redirect URL.
        Returns:
        The redirect URL.
      • getSecondOrderId

        public java.lang.String getSecondOrderId()
        Returns the ID of the second order.
        Specified by:
        getSecondOrderId in interface CSROrderPrepareCmd
        Returns:
        The ID of the second order.
      • performExecute

        public void performExecute()
                            throws ECException
        This method prepares the orders that have at least one item.

        It first calls the callPreCommands method in the super class to execute all pre-commands and then prepares the orders.

        If there are any temporary addresses used in the order items, they will be converted into permanent addresses first before calling OrderPrepareCmd. Then these address will be changed back into temporary addresses.

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - if orders can not be prepared.