public class CreateCustomerAction extends org.eclipse.jface.action.Action implements IModelListener
Constructor and Description |
---|
CreateCustomerAction()
Default constructor to create a new action.
|
Modifier and Type | Method and Description |
---|---|
TelesalesRequestStatus | executeCreateCustomerRequest()
This method performs the create customer action by executing the com.ibm.commerce.telesales.createCustomer service request.
|
protected TelesalesProperties | getCreateCustomerParameters()
This method constructs the parameters for the com.ibm.commerce.telesales.createCustomer action.
|
protected Customer | getCurrentCustomerFromActiveEditor()
This method returns the current Customer from the active editor or null if the active editor itself is null.
|
java.lang.String | getGuestUserId()
This method gets the value of the guest user id.
|
java.lang.String | getHelpId()
This method returns help ID.
|
boolean | isMigrateCustomerAssets()
This method gets the value of the flag indicating, whether the customer assets need to be migrated.
|
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 and require any post action like resetting the action's parameters.
|
void | run()
This method performs to handle the presentation portion of the action.
|
void | setGuestUserId(java.lang.String guestUserId)
This method sets the value of the guest user id.
|
void | setMigrateCustomerAssets(boolean migrateCustomerAssets)
This method sets the value of the flag indicating, whether the customer assets need to be migrated.
|
public CreateCustomerAction()
public void modelChanged(ModelObjectChangedEvent event)
public java.lang.String getHelpId()
public void run()
public boolean isMigrateCustomerAssets()
public void setMigrateCustomerAssets(boolean migrateCustomerAssets)
public java.lang.String getGuestUserId()
public void setGuestUserId(java.lang.String guestUserId)
public TelesalesRequestStatus executeCreateCustomerRequest() throws java.lang.InterruptedException, java.lang.Exception
protected TelesalesProperties getCreateCustomerParameters()
protected Customer getCurrentCustomerFromActiveEditor()
protected void postRun()