public class SubmitOrderAction extends com.ibm.commerce.telesales.ui.impl.actions.BaseOrderAction implements IModelListener
Constructor and Description |
---|
SubmitOrderAction()
The default constructor that creates a new action.
|
SubmitOrderAction(Order order)
The constructor that creates a new action with Order as input parameter.
|
Modifier and Type | Method and Description |
---|---|
protected boolean | getEnabled()
This method returns whether this action should be enabled.
|
java.lang.String | getHelpContextId()
This method retrieves the action's help context identifier.
|
protected TelesalesProperties | getPrepareOrderParameters()
Deprecated.
Instead use PrepareOrderAction
|
Order | getSalesOrder()
This method returns the sales order for this action.
|
protected TelesalesProperties | getSubmitOrderParameters(Order order)
This method constructs the parameters for the com.ibm.commerce.telesales.submitOrder action.
|
void | modelChanged(ModelObjectChangedEvent event)
This method listens to model changed events and sets the enablement state.
|
protected void | postSubmitOrderAction(TelesalesRequestStatus status)
This method will be called once submit order action is completed and require any post submit order action.
|
void | prepareOrder()
This method initiates the com.ibm.commerce.telesales.prepareOrder request.
|
void | run()
This method prepares the current active sales order and submit the order.
|
void | setSalesOrder(Order order)
This method sets the current sales order as the Order object passed.
|
protected void | submitOrder(Order order)
This method initiates the com.ibm.commerce.telesales.submitOrder request.
|
public SubmitOrderAction()
public SubmitOrderAction(Order order)
protected boolean getEnabled()
public java.lang.String getHelpContextId()
public Order getSalesOrder()
protected TelesalesProperties getPrepareOrderParameters()
public void prepareOrder()
protected TelesalesProperties getSubmitOrderParameters(Order order)
public void modelChanged(ModelObjectChangedEvent event)
public void run()
protected void submitOrder(Order order)
public void setSalesOrder(Order order)
protected void postSubmitOrderAction(TelesalesRequestStatus status)