public class ClearCustomerAction extends org.eclipse.jface.action.Action implements IModelListener
Constructor and Description |
---|
ClearCustomerAction()
Default constructor to create a new ClearCustomerAction.
|
Modifier and Type | Method and Description |
---|---|
protected TelesalesProperties | getClearCustomerParameters()
This method construct the TelesalesProperties object that will be passed to the "com.ibm.commerce.telesales.clearCustomer" action.
|
Customer | getCustomer()
This method returns the customer that needs to have its token cleared
|
Store | getParentStore()
This method returns the parent store at which this customer was shopping
|
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 initiates the clear customer SOA token process.
|
protected void | sendRequest()
This method sends the "com.ibm.commerce.telesales.clearCustomer" request to the Request Handler.
|
void | setCustomer(Customer customer)
This method sets the customer whose token needs to be cleared
|
void | setParentStore(Store parentStore)
This method sets the parent store that this customer was shopping.
|
public ClearCustomerAction()
public void modelChanged(ModelObjectChangedEvent event)
public void run()
protected void postRun()
protected void sendRequest()
protected TelesalesProperties getClearCustomerParameters()
public Customer getCustomer()
public void setCustomer(Customer customer)
public Store getParentStore()
public void setParentStore(Store parentStore)