com.ibm.commerce.payment.ppc.commands

Class PPCMerchantConfigurationInfoEditCtrlCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.base.helpers.EJBConstants, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, PPCMerchantConfigurationInfoEditCtrlCmd, Protectable, ECConstants, ToolsControllerCommand, ECToolsConstants, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class PPCMerchantConfigurationInfoEditCtrlCmdImpl
    extends ToolsControllerCommandImpl
    implements PPCMerchantConfigurationInfoEditCtrlCmd, ECConstants, ECToolsConstants, com.ibm.commerce.base.helpers.EJBConstants
    This is the default implementation of the PPCMerchantConfigurationInfoEditCtrlCmd tools controller command.

    Input parameters:

    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.

    Output parameters:

    None.

    Behaviour:

    • If actionName is "create", calls com.ibm.commerce.payments.plugincontroller.PaymentsAdminInterface#putMerchantConfInfo(Long, Hashtable) to create the property information of the merchant configuration.
    • If actionName is "update", calls com.ibm.commerce.payments.plugincontroller.PaymentsAdminInterface#editMerchantConfInfo(Long, Hashtable) to edit the property information of the merchant configuration.
    • If actionName is "delete", calls com.ibm.commerce.payments.plugincontroller.PaymentsAdminInterface#deleteMerchant(Long) to delete the property information of merchant configuration with the specified names if the parameter propertyName_i is present. Otherwise calls com.ibm.commerce.payments.plugincontroller.PaymentsAdminInterface#deleteMerchant(Long) to delete all property information of the merchant configuration.

    Task commands called:

    None.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • CLASS_NAME

        public static final java.lang.String CLASS_NAME
        The class name of this class.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PPCMerchantConfigurationInfoEditCtrlCmdImpl

        public PPCMerchantConfigurationInfoEditCtrlCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the main logic of creating/editing/deleting the merchant configuration information.

        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".

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • getMerchantConfId

        public java.lang.String getMerchantConfId()
        This method returns the merchant configuration id of this merchant configuration information.
        Returns:
        merchantConfId The merchant configuration id of this merchant configuration information
      • setMerchantConfId

        public void setMerchantConfId(java.lang.String aMerchantConfId)
        This method sets the merchant configuration id of this merchant configuration information.
        Parameters:
        aMerchantConfId - The merchant configuration id to set
      • getActionName

        public java.lang.String getActionName()
        This method returns the action name upon the merchant configuration information, which could be Create, Update or Delete.
        Returns:
        actionName The action name upon the merchant configuration information
      • setActionName

        public void setActionName(java.lang.String anActionName)
        This method sets the action name upon the merchant configuration information, which could be Create, Update or Delete.
        Parameters:
        anActionName - The action name upon the merchant configuration information
      • getProperties

        public java.util.Hashtable getProperties()
        This method returns the properties in this merchant configuration information.
        Returns:
        The properties in this merchant configuration information
      • setProperties

        public void setProperties(java.util.Hashtable aProperties)
        This method sets the properties of this merchant configuration information.
        Parameters:
        aProperties - The properties to set
      • reset

        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.

        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand