com.ibm.commerce.order.commands

Class ReprepareOrderCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ReprepareOrderCmd, 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
    Direct Known Subclasses:
    ExternalReprepareOrderCmdImpl


    public class ReprepareOrderCmdImpl
    extends TaskCommandImpl
    implements ReprepareOrderCmd
    This is the default implementation of the ReprepareOrderCmd task command.

    Behaviour:

    • new a OrderProcessingHelper utility object.
    • For each order passed in:
      • Initialize the OrderProcessingHelper object.
      • set the shipping, shipping adjustment, sales tax, shipping tax calculation usages to the OrderProcessingHelper object
      • Call the OrderProcessingHelper.calculateShippingTaxAndTotals(String) to recalculate the specified charges then lock the order.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • ReprepareOrderCmdImpl

        public ReprepareOrderCmdImpl()
    • Method Detail

      • getOrders

        public java.util.Vector getOrders()
        Gets ids of the orders to be reprepared.
        Returns:
        a vector of order access beans.
      • setOrders

        public void setOrders(java.util.Vector newOrders)
        Sets ids of the orders to be reprepared.
        Specified by:
        setOrders in interface ReprepareOrderCmd
        Parameters:
        newOrders - a vector of order access beans.