public class PPCMerchantConfigurationInfoEditCtrlCmdImpl extends ToolsControllerCommandImpl implements PPCMerchantConfigurationInfoEditCtrlCmd, ECConstants, ECToolsConstants, com.ibm.commerce.base.helpers.EJBConstants
Name | XPath | Description |
---|---|---|
actionName | /XML/actionName | The action name. Possible values include "create", "update" and "delete". Mandatory. |
merchantConfId | /XML/merchantConfId | The merchant configuration identifier. Mandatory. |
propertyName_i | /XML/propertyName_i | The name of the property information of the merchant configuration. Mandatory when actionName is "create" and "update". Optional when actionName is "delete", if it present, then the corresponding property will be deleted; while if it is not present, then all property information of the merchant configuration will be deleted. |
propertyValue_i | /XML/propertyValue_i | The value of the property information of the merchant configuration. Mandatory when actionName is "create" and "update". 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 |
---|
PPCMerchantConfigurationInfoEditCtrlCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | checkActionNameException()
This method checks that the action name is in {create, update, delete}.
|
protected void | checkMerchantConfInfoIdNullException()
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.
|
java.lang.String | getActionName()
This method returns the action name upon the merchant configuration information, which could be Create, Update or Delete.
|
java.lang.String | getMerchantConfId()
This method returns the merchant configuration id of this merchant configuration information.
|
protected com.ibm.commerce.payments.plugincontroller.beans.PluginController | getPaymentsFacade()
This method gets interface of the payment processing component.
|
java.util.Hashtable | getProperties()
This method returns the properties in this merchant configuration information.
|
protected java.util.ArrayList | getPropertyNames()
This method gets all property names in the request properties.
|
protected java.util.Hashtable | getPropertyNVP()
This method gets the NVPs with property name and property value.
|
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/editing/deleting the merchant configuration information.
|
void | reset()
This method resets the command fields.
|
void | setActionName(java.lang.String anActionName)
This method sets the action name upon the merchant configuration information, which could be Create, Update or Delete.
|
void | setMerchantConfId(java.lang.String aMerchantConfId)
This method sets the merchant configuration id of this merchant configuration information.
|
void | setProperties(java.util.Hashtable aProperties)
This method sets the properties of this merchant configuration information.
|
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 PPCMerchantConfigurationInfoEditCtrlCmdImpl()
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
protected void checkMerchantConfInfoIdNullException() throws ECApplicationException
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
When the new merchant configuration information needs to be created, there is no merchant id in the request properties. And the action name is "create".
When the merchant configuration information needs to be updated, action name is "update".
When the merchant configuration information needs to be deleted, action name is "delete".
public java.lang.String getMerchantConfId()
public void setMerchantConfId(java.lang.String aMerchantConfId)
public java.lang.String getActionName()
public void setActionName(java.lang.String anActionName)
public java.util.Hashtable getProperties()
protected java.util.Hashtable getPropertyNVP() throws ECSystemException
protected java.util.ArrayList getPropertyNames()
public void setProperties(java.util.Hashtable aProperties)
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.