com.ibm.commerce.payment.ppc.commands

Class PPCMerchantConfigurationEditCtrlCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.base.helpers.EJBConstants, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, PPCMerchantConfigurationEditCtrlCmd, 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 PPCMerchantConfigurationEditCtrlCmdImpl
    extends ToolsControllerCommandImpl
    implements PPCMerchantConfigurationEditCtrlCmd, ECConstants, ECToolsConstants, com.ibm.commerce.base.helpers.EJBConstants
    This is the default implementation of the PPCMerchantConfigurationEditCtrlCmd tools controller command.

    Input parameters:

    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.

    Output parameters:

    None.

    Behaviour:

    • If actionName is "create", calls com.ibm.commerce.payments.plugincontroller.PaymentsAdminInterface#createMerchantConf(Long, String, String) to create the merchant configuration.
    • If actionName is "delete", calls com.ibm.commerce.payments.plugincontroller.PaymentsAdminInterface#deleteMerchant(Long) to delete the merchant configuration.
    • Note that this command does not support updating a merchant configuration, because there is no scenarios for this action.

    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

      • PPCMerchantConfigurationEditCtrlCmdImpl

        public PPCMerchantConfigurationEditCtrlCmdImpl()
    • Method Detail

      • performExecute

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

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

        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 current merchant configuration ID.
        Returns:
        merchantConfId The current merchant configuration ID
      • setMerchantConfId

        public void setMerchantConfId(java.lang.String aMerchantConfId)
        This method sets the current merhcnat configuration ID.
        Parameters:
        aMerchantConfId - The merhcnat configuration to set
      • getPaymentConfigurationGroup

        public java.lang.String getPaymentConfigurationGroup()
        This method returns the current payment configuration group ID.
        Returns:
        paymentConfigurationGroup The current payment configuration group ID
      • setPaymentConfigurationGroup

        public void setPaymentConfigurationGroup(java.lang.String aPymentConfigurationGroup)
        This method sets the current payment configuration group ID.
        Parameters:
        aPymentConfigurationGroup - configuration group ID
      • getPaymentSystemName

        public java.lang.String getPaymentSystemName()
        This method returns the current payment system name.
        Returns:
        The current payment system name
      • setPaymentSystemName

        public void setPaymentSystemName(java.lang.String aPaymentSystemName)
        This method sets the current payment system name.
        Parameters:
        aPaymentSystemName - The payment system name to set
      • getActionName

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

        public void setActionName(java.lang.String anActionName)
        This method returns the action name upon the merchant configuration, which could be Create, Update or Delete.
        Parameters:
        anActionName - The actionName upon the merchant configuration to set.
      • getMerchantId

        public java.lang.String getMerchantId()
        This method returns the merchant ID of this merchant configuration.
        Returns:
        The merchant ID of this merchant configuration
      • setMerchantId

        public void setMerchantId(java.lang.String aMerchantId)
        This method sets the merchant ID of this merchant configuration.
        Parameters:
        aMerchantId - The merchant ID of this merchant configuration
      • 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