|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.softslate.commerce.administrator.ordermanagement.OrderManagementUtilsImpl
public class OrderManagementUtilsImpl
OrderManagementUtilsImpl is the default implementation of the
OrderManagementUtils interface for the application.
ActionUtils| Field Summary | |
|---|---|
(package private) static org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
OrderManagementUtilsImpl()
|
|
| 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. |
java.util.Map |
performWrappedAction(BaseOrderManagementAction action,
BaseForm baseForm)
|
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)
|
java.lang.String |
wrapAction(BaseOrderManagementAction action,
BaseForm baseForm)
Populate baseForm with user, order, and customer
objects all derived from its orderID property,
and pass baseForm to action's
BaseOrderManagementAction.processOrderManagementAction(com.softslate.commerce.customer.core.BaseForm)
method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public OrderManagementUtilsImpl()
| Method Detail |
|---|
public java.util.Map findPreviousShippingOption(java.util.Collection options,
Order order,
BaseForm baseForm)
OrderManagementUtils
findPreviousShippingOption in interface OrderManagementUtilspublic java.util.Collection findCouponCodes(Order order)
OrderManagementUtils
findCouponCodes in interface OrderManagementUtils
public java.util.Map findOrderChanges(Order order,
Order originalOrder,
java.util.Collection newOrderItems)
OrderManagementUtils
findOrderChanges in interface OrderManagementUtils
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)
public java.lang.String wrapAction(BaseOrderManagementAction action,
BaseForm baseForm)
throws java.lang.Exception
OrderManagementUtilsbaseForm with user, order, and customer
objects all derived from its orderID property,
and pass baseForm to action's
BaseOrderManagementAction.processOrderManagementAction(com.softslate.commerce.customer.core.BaseForm)
method.
wrapAction in interface OrderManagementUtilsaction - object whose processOrderManagementAction method to callbaseForm - request context
java.lang.ExceptionBaseOrderManagementAction
public java.util.Map performWrappedAction(BaseOrderManagementAction action,
BaseForm baseForm)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||