public class CreateOrderAction extends com.ibm.commerce.telesales.ui.impl.actions.BaseOrderAction implements IModelListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String | DEFAULT_SALES_CENTER_BUSINESS_CHANNEL_NAME
Constant for the default Sales Center Business Channel Name.
|
Constructor and Description |
---|
CreateOrderAction()
The default constructor to create a new action.
|
Modifier and Type | Method and Description |
---|---|
Order | createNewAnonymousOrder(Customer customer)
This method creates and returns a new anonymous order.
|
void | createNewOrder(Customer customer)
This method creates a new order.
|
protected void | createOrder(Customer customer, Order order)
This method initiates the com.ibm.commerce.telesales.createOrder request.
|
protected TelesalesProperties | getCreateOrderParameters(Order order)
This method constructs the parameters for the create orders data access object.
|
java.lang.String | getDefaultBusinessChannelId()
This method returns the default business channel identifier if it is set.
|
java.lang.String | getDefaultSalesCenterBusinessChannelName()
This method returns the default sales center business channel name.
|
java.lang.String | getHelpId()
This method returns the help context identifier of this action.
|
protected Order | getOrderLevelDetails(Order order)
This method refresh the order level details for newly created order.
|
void | modelChanged(ModelObjectChangedEvent event)
This method listens to model changed events and sets the enablement state.
|
protected void | postCreateOrderAction(Order order, TelesalesRequestStatus status)
This method is called once end create order action is completed.
|
void | run()
This method opens a new order editor and initiates the order creation action.
|
void | setBusinessChannelId(java.lang.String businessChannelId)
This method sets the business channel identifier for the new order.
|
void | setOrder(Order order)
This method sets the order that is to be created.
|
protected void | updateEnablement()
This method updates the enablement of the action to reflect the current state of the model.
|
public static final java.lang.String DEFAULT_SALES_CENTER_BUSINESS_CHANNEL_NAME
The value is "Telesales".
public CreateOrderAction()
protected void updateEnablement()
public void modelChanged(ModelObjectChangedEvent event)
public java.lang.String getHelpId()
public void setOrder(Order order)
public void setBusinessChannelId(java.lang.String businessChannelId)
public void run()
public void createNewOrder(Customer customer)
public Order createNewAnonymousOrder(Customer customer)
protected void createOrder(Customer customer, Order order)
protected void postCreateOrderAction(Order order, TelesalesRequestStatus status)
protected TelesalesProperties getCreateOrderParameters(Order order)
public java.lang.String getDefaultSalesCenterBusinessChannelName()
public java.lang.String getDefaultBusinessChannelId()