com.softslate.commerce.administrator.ordermanagement
Class OrderManagementUtilsImpl
java.lang.Object
com.softslate.commerce.administrator.ordermanagement.OrderManagementUtilsImpl
- All Implemented Interfaces:
- OrderManagementUtils
public class OrderManagementUtilsImpl
- extends java.lang.Object
- implements OrderManagementUtils
AjaxUtilsImpl
is the default implementation of the
AjaxUtils
interface for the application.
- Author:
- David Tobey
- See Also:
ActionUtils
Field Summary |
(package private) static org.apache.commons.logging.Log |
log
|
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. |
protected void |
saveErrors(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMessages errors)
|
protected void |
saveMessages(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMessages messages)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
static org.apache.commons.logging.Log log
OrderManagementUtilsImpl
public OrderManagementUtilsImpl()
findPreviousShippingOption
public java.util.Map findPreviousShippingOption(java.util.Collection options,
Order order,
BaseForm baseForm)
- Description copied from interface:
OrderManagementUtils
- 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.
- Specified by:
findPreviousShippingOption
in interface OrderManagementUtils
- Returns:
- the shipping option, or null if it could not be found
findCouponCodes
public java.util.Collection findCouponCodes(Order order)
- Description copied from interface:
OrderManagementUtils
- Given an order object, return a Collection of all the coupon codes used
by OrderDiscount objects under the Order.
- Specified by:
findCouponCodes
in interface OrderManagementUtils
- Returns:
- a Collection of strings
findOrderChanges
public java.util.Map findOrderChanges(Order order,
Order originalOrder,
java.util.Collection newOrderItems)
- Description copied from interface:
OrderManagementUtils
- Given an order and another order to compare it to, return a Map
describing the differences between the two orders.
- Specified by:
findOrderChanges
in interface OrderManagementUtils
- Returns:
- A Map representing the differences between the two orders.
saveErrors
protected void saveErrors(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMessages errors)
saveMessages
protected void saveMessages(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMessages messages)
Copyright © SoftSlate, LLC 20032005