public class FindPreviousOrNextOrderVersionAction extends com.ibm.commerce.telesales.ui.impl.actions.BaseOrderAction implements IModelListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String | VAL_HISTORY_ORDER_VERSION
Property that is used to denote the version of a history order.
|
static java.lang.String | VAL_SHOW_HISTORY_ORDER
Property that denotes whether history order should be shown.
|
Constructor and Description |
---|
FindPreviousOrNextOrderVersionAction()
The default constructor that creates a new action.
|
Modifier and Type | Method and Description |
---|---|
protected Customer | findCustomer(Customer customer)
This method initiates the com.ibm.commerce.telesales.findCustomer request.
|
protected Order | findOrderWithDetails(Order order)
This method finds a single order with detail data accompanying the response data.
|
protected TelesalesProperties | getFindCustomerParameters(Customer customer)
This method constructs the parameters for the com.ibm.commerce.telesales.findCustomer service request.
|
protected TelesalesProperties | getFindOrderParameters(Order order)
This method constructs the parameters for the com.ibm.commerce.telesales.findOrder service request.
|
java.lang.String | getHelpId()
This method retrieves the help context identifier.
|
protected java.lang.String | getIsOrderLevelDetails()
This method used whether to return get order level details or not.
|
Order | getOrder_()
This method returns the current order set.
|
protected java.lang.String | getOrderItems()
This method is used to return value whether to get order items or not.
|
void | modelChanged(ModelObjectChangedEvent event)
This method listens to model changed events and sets the enablement state.
|
protected void | postRun()
This method will be called once run action is completed to perform any post run actions like resetting the action's parameters etc., Customer may override this method and must call the super implementation.
|
void | run()
This method opens the order editor, once previous/next version of the current order is requested with all available data (for example, order id, order Version).
|
void | setOrder_(Order order)
This method sets the order object.
|
public static final java.lang.String VAL_SHOW_HISTORY_ORDER
public static final java.lang.String VAL_HISTORY_ORDER_VERSION
public FindPreviousOrNextOrderVersionAction()
public void modelChanged(ModelObjectChangedEvent event)
public java.lang.String getHelpId()
public void run()
protected void postRun()
protected Customer findCustomer(Customer customer)
protected Order findOrderWithDetails(Order order)
Currently, the ShowSalesOrder BOD does not return all customer-related information. This method may perform a find customer to ensure all customer information is stored in the customer data bean. This requires if the order's customer is not already in the model.
protected TelesalesProperties getFindCustomerParameters(Customer customer)
protected TelesalesProperties getFindOrderParameters(Order order)
public Order getOrder_()
public void setOrder_(Order order)
protected java.lang.String getIsOrderLevelDetails()
protected java.lang.String getOrderItems()