public class PPCStoreMerchantAssociateCtrlCmdImpl extends ToolsControllerCommandImpl implements PPCStoreMerchantAssociateCtrlCmd, ECConstants, ECToolsConstants, com.ibm.commerce.base.helpers.EJBConstants
Name | XPath | Description |
---|---|---|
actionName | /XML/actionName | The action name. Possible values include "create", and "delete". Mandatory. |
merchantId | /XML/merchantId | The merchant identifier. Mandatory when actionName is "create". ignored otherwise. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASS_NAME
The class name of this class.
|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
PPCStoreMerchantAssociateCtrlCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | checkActionNameException()
This method checks that the action name is in {create, delete}.
|
protected void | checkMerchantIdNullException()
This method checks whether merchant id is null.
|
protected void | checkNumberFormatException()
This method checks that the numeric fields are in the correct numeric format.
|
java.lang.String | getActionName()
This method returns the action name upon the association, which could be Create or Delete.
|
java.lang.String | getMerchantId()
This method gets the identifier of the involved merchant.
|
protected com.ibm.commerce.payments.plugincontroller.beans.PluginController | getPaymentsFacade()
This method gets interface of the payment processing component.
|
AccessVector | getResources()
This method gets the access vector accessed by this command.
|
protected void | handleSubmitError(ECException e)
This method Constructs and returns the error message.
|
void | performExecute()
This method performs the main logic of creating/deleting the association between the store and the merchant.
|
void | reset()
This method resets the command fields.
|
void | setActionName(java.lang.String anActionName)
This method sets the action name upon the association, which could be Create or Delete.
|
void | setMerchantId(java.lang.String aMerchantId)
This method sets the identifier of the involved merhcant.
|
void | validateParameters()
This method gets information from requestProperties and sets the information into the command local variables.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public PPCStoreMerchantAssociateCtrlCmdImpl()
protected com.ibm.commerce.payments.plugincontroller.beans.PluginController getPaymentsFacade() throws J2EEException
public void validateParameters() throws ECException
protected void handleSubmitError(ECException e) throws ECApplicationException
protected void checkNumberFormatException() throws ECApplicationException
protected void checkActionNameException() throws ECApplicationException
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
When a new association between the store and the merchant needs to be created, action name is "create".
When the association between the store and the merchant needs to be deleted, action name is "delete".
protected void checkMerchantIdNullException() throws ECApplicationException
public java.lang.String getMerchantId()
public void setMerchantId(java.lang.String aMerchantId)
public java.lang.String getActionName()
public void setActionName(java.lang.String anActionName)
public void reset()
This method resets the command fields.
After this method is invoked, and proper attributes are set, the command can be executed again.