|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.retek.rcom.gui.wrapper.RcomOrderManager
This class manages generic order functionality for the UI layer.
Retek Inc. Copyright (c) 2002
Constructor Summary | |
---|---|
RcomOrderManager()
|
Method Summary | |
---|---|
static void |
addPaymentToOrder(CustomerOrder order,
CustomerOrderPayment payment,
OrderScreenType screenType)
Adds a payment to the customer order and authorize it if necessary. |
static void |
clearMailOrder()
Clears the mail order from the repository. |
static void |
clearOrder(CustomerOrder customerOrder)
Clears out the inventory on an order that is cleared and non submitted. |
static void |
clearOrders(boolean orderEntry,
boolean orderMain,
boolean clearCustomer)
Clears the RcomRepository of orders and discards the changes on customer. |
static void |
createOrders(boolean newCustomer)
Creates the customer and orders and puts them in the RcomRepository. |
static void |
createOrders(Customer customer,
Banner banner)
|
static java.util.List |
getDisplayableOrderLines(CustomerOrder order)
Retrieves all the displayable order lines of a customer order automatically excluding No-Longer-Available items. |
static RcomOrderLine |
getFirstOrderLine(CustomerOrder order)
Retrieves the very first RcomOrderLine within a customer order. |
static RcomOrderLine |
getLastOrderLine(CustomerOrder order)
Retrieves the very last RcomOrderLine within a customer order. |
static java.util.List |
getNonPersistedOrderLines(CustomerOrder order)
Retrieves all the non persisted order lines in the order. |
static java.util.List |
getReplaceableOrderLines(CustomerOrder order)
Retrieves all the replaceable order lines of a customer order. |
static java.util.List |
getReturnableOrderLines(CustomerOrder order)
Retrieves all the returnable order lines of a customer order. |
static boolean |
hasOrderLines(CustomerOrder order)
Returns whethor or not an order contains order lines. |
static boolean |
hasOrderLinesWithShipTo(CustomerOrder order)
Returns whethor or not an order contains order lines (and all have ship to addresses). |
static boolean |
hasReplaceableOrderLines(CustomerOrder order)
Returns whethor or not an order contains replaceable order lines. |
static boolean |
hasReturnableOrderLines(CustomerOrder order)
Returns whethor or not an order contains returnable order lines. |
static boolean |
isOrderAutoCancellable(CustomerOrder customerOrder)
Retrieves whether or not an order can be automatically cancelled by the system. |
static void |
storeMailOrder(CustomerOrder customerOrder)
Stores a mail order in the repository. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RcomOrderManager()
Method Detail |
public static void clearOrder(CustomerOrder customerOrder) throws SystemException, BusinessException
SystemException
BusinessException
public static void clearOrders(boolean orderEntry, boolean orderMain, boolean clearCustomer) throws SystemException, BusinessException
SystemException
BusinessException
public static void createOrders(boolean newCustomer) throws SystemException
SystemException
public static void createOrders(Customer customer, Banner banner) throws SystemException, BusinessException
SystemException
BusinessException
public static java.util.List getDisplayableOrderLines(CustomerOrder order) throws SystemException, BusinessException
SystemException
BusinessException
public static java.util.List getNonPersistedOrderLines(CustomerOrder order) throws SystemException, BusinessException
SystemException
BusinessException
public static java.util.List getReturnableOrderLines(CustomerOrder order) throws SystemException, BusinessException
Component lines are not returnable as far as the GUI is concerned. The second loop looks for returnable component lines and adds the PACK order line to the list.
SystemException
BusinessException
public static java.util.List getReplaceableOrderLines(CustomerOrder order) throws SystemException, BusinessException
SystemException
BusinessException
public static RcomOrderLine getLastOrderLine(CustomerOrder order) throws SystemException, BusinessException
SystemException
BusinessException
public static RcomOrderLine getFirstOrderLine(CustomerOrder order) throws SystemException, BusinessException
SystemException
BusinessException
public static boolean hasOrderLines(CustomerOrder order) throws SystemException, BusinessException
SystemException
BusinessException
public static boolean hasOrderLinesWithShipTo(CustomerOrder order) throws SystemException, BusinessException
SystemException
BusinessException
public static boolean hasReturnableOrderLines(CustomerOrder order) throws SystemException, BusinessException
SystemException
BusinessException
public static boolean hasReplaceableOrderLines(CustomerOrder order) throws SystemException, BusinessException
SystemException
BusinessException
public static void addPaymentToOrder(CustomerOrder order, CustomerOrderPayment payment, OrderScreenType screenType) throws SystemException, BusinessException
SystemException
BusinessException
public static boolean isOrderAutoCancellable(CustomerOrder customerOrder) throws SystemException
SystemException
public static void clearMailOrder() throws SystemException
SystemException
public static void storeMailOrder(CustomerOrder customerOrder) throws SystemException, BusinessException
SystemException
BusinessException
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |