com.softslate.commerce.administrator.ordermanagement
Interface OrderManagementUtils

All Known Implementing Classes:
OrderManagementUtilsImpl

public interface OrderManagementUtils

Interface for utility methods used by Struts Action classes implement Ajax functionality.

When the application needs to create an instance that implements AjaxUtils, it calls BusinessObjectFactory.createUtilsObject(java.lang.String) , which finds the name of the Java class to instantiate from the "ajaxUtilsImplemeter" setting in the appComponents.properties file.

The default "ajaxUtilsImplemeter" is OrderManagementUtilsImpl.

Author:
David Tobey

Method Summary
 java.util.Collection findCouponCodes(Order order)
          Given an order object, return a Collection of all the coupon codes used by OrderDiscount objects under the Order.
 java.util.Map findOrderChanges(Order order, Order originalOrder, java.util.Collection newOrderItems)
          Given an order and another order to compare it to, return a Map describing the differences between the two orders.
 java.util.Map findPreviousShippingOption(java.util.Collection options, Order order, BaseForm baseForm)
          Given a Collection of valid shipping options and an Order object, attempts to find the shippping option within the collection that was previously selected for the order.
 

Method Detail

findPreviousShippingOption

java.util.Map findPreviousShippingOption(java.util.Collection options,
                                         Order order,
                                         BaseForm baseForm)
Given a Collection of valid shipping options and an Order object, attempts to find the shippping option within the collection that was previously selected for the order.

Parameters:
options -
order -
baseForm -
Returns:
the shipping option, or null if it could not be found

findCouponCodes

java.util.Collection findCouponCodes(Order order)
Given an order object, return a Collection of all the coupon codes used by OrderDiscount objects under the Order.

Parameters:
order -
Returns:
a Collection of strings

findOrderChanges

java.util.Map findOrderChanges(Order order,
                               Order originalOrder,
                               java.util.Collection newOrderItems)
Given an order and another order to compare it to, return a Map describing the differences between the two orders.

Parameters:
order -
originalOrder -
newOrderItems -
Returns:
A Map representing the differences between the two orders.


Copyright © SoftSlate, LLC 2003–2005