public class PPCMerchantConfigurationEditCtrlCmdImpl extends ToolsControllerCommandImpl implements PPCMerchantConfigurationEditCtrlCmd, ECConstants, ECToolsConstants, com.ibm.commerce.base.helpers.EJBConstants
Name | XPath | Description |
---|---|---|
actionName | /XML/actionName | The action name. Possible values include "create" and "delete". Mandatory. |
merchantConfId | /XML/merchantConfId | The merchant configuration identifier. Mandatory when actionName is "delete", ignored otherwise. |
merchantId | /XML/merchantId | The identifier of the merchant. Mandatory when actionName is "create", ignored otherwise. |
paymentSystemName | /XML/paymentSystemName | The payment system name used by this merchant configuration. Mandatory when actionName is "create", ignored otherwise. |
paymentConfigurationGroup | /XML/paymentConfigurationGroup | The payment configuration group id used by this merchant configuration. 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 |
---|
PPCMerchantConfigurationEditCtrlCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | checkActionNameException()
This method checks that the action name is in {create, update, delete}.
|
protected void | checkMerchantConfIdNullException()
This method checks whether merchant configuration id is null.
|
protected void | checkNumberFormatException()
This method checks that the numeric fields are in the correct numeric format.
|
protected void | checkRequiredParameter()
This method checks if required parameters is present.
|
java.lang.String | getActionName()
This method sets the action name upon the merchant configuration, which could be Create, Update or Delete.
|
java.lang.String | getMerchantConfId()
This method returns the current merchant configuration ID.
|
java.lang.String | getMerchantId()
This method returns the merchant ID of this merchant configuration.
|
java.lang.String | getPaymentConfigurationGroup()
This method returns the current payment configuration group ID.
|
protected com.ibm.commerce.payments.plugincontroller.beans.PluginController | getPaymentsFacade()
This method gets interface of the payment processing component.
|
java.lang.String | getPaymentSystemName()
This method returns the current payment system name.
|
AccessVector | getResources()
This method returns 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/editing/deleting the merchant configuration.
|
void | reset()
This method resets the command fields.
|
void | setActionName(java.lang.String anActionName)
This method returns the action name upon the merchant configuration, which could be Create, Update or Delete.
|
void | setMerchantConfId(java.lang.String aMerchantConfId)
This method sets the current merhcnat configuration ID.
|
void | setMerchantId(java.lang.String aMerchantId)
This method sets the merchant ID of this merchant configuration.
|
void | setPaymentConfigurationGroup(java.lang.String aPymentConfigurationGroup)
This method sets the current payment configuration group ID.
|
void | setPaymentSystemName(java.lang.String aPaymentSystemName)
This method sets the current payment system name.
|
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 PPCMerchantConfigurationEditCtrlCmdImpl()
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 checkRequiredParameter() throws ECException
protected void checkActionNameException() throws ECApplicationException
protected void checkMerchantConfIdNullException() throws ECApplicationException
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
When the new merchant configuration needs to be created, there is no merchant configuration id in the request properties. And the action name is "create".
When the merchant configuration needs to be updated, action name is "update".
When the merchant configuration needs to be deleted, action name is "delete".
public java.lang.String getMerchantConfId()
public void setMerchantConfId(java.lang.String aMerchantConfId)
public java.lang.String getPaymentConfigurationGroup()
public void setPaymentConfigurationGroup(java.lang.String aPymentConfigurationGroup)
public java.lang.String getPaymentSystemName()
public void setPaymentSystemName(java.lang.String aPaymentSystemName)
public java.lang.String getActionName()
public void setActionName(java.lang.String anActionName)
public java.lang.String getMerchantId()
public void setMerchantId(java.lang.String aMerchantId)
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.