public class CreateQuoteAction extends com.ibm.commerce.telesales.ui.impl.actions.BaseQuoteAction implements IModelListener
Constructor and Description |
---|
CreateQuoteAction()
The default constructor that creates a new action.
|
Modifier and Type | Method and Description |
---|---|
Quote | createNewAnonymousQuote(Customer customer)
This method creates and returns a new anonymous quote.
|
void | createNewQuote(Customer customer)
This method creates and returns a new quote for a customer.
|
protected void | createQuote(Customer customer, Quote quote)
This method initiates the create quote container request to the model.
|
protected TelesalesProperties | getCreateQuoteParameters(Quote quote)
This method constructs the parameters for the create quotes data access object.
|
java.lang.String | getHelpId()
This method returns the help context identifier of this action.
|
protected Quote | getQuoteLevelDetails(Quote quote)
This method refresh the Quote level details for newly created Quote.
|
void | modelChanged(ModelObjectChangedEvent event)
This method listens to model changed events and sets the enablement state.
|
protected void | postCreateQuoteAction(Quote quote, TelesalesRequestStatus status)
This method is called once end create quote action is completed.
|
void | run()
This method initiates the quote creation action.
|
void | setQuote(Quote quote)
This method sets the quote 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 CreateQuoteAction()
protected void updateEnablement()
public void modelChanged(ModelObjectChangedEvent event)
public java.lang.String getHelpId()
public void setQuote(Quote quote)
public void run()
public void createNewQuote(Customer customer)
public Quote createNewAnonymousQuote(Customer customer)
protected void createQuote(Customer customer, Quote quote)
protected void postCreateQuoteAction(Quote quote, TelesalesRequestStatus status)
protected TelesalesProperties getCreateQuoteParameters(Quote quote)