Class PPCPayInstExtendedEditCmdImpl

  • All Implemented Interfaces:, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, PPCPayInstExtendedEditCmd, Protectable, ECConstants, ToolsControllerCommand, ECToolsConstants,,,,,,

    public class PPCPayInstExtendedEditCmdImpl
    extends ToolsControllerCommandImpl
    implements PPCPayInstExtendedEditCmd, ECConstants, ECToolsConstants,
    This is the default implementation of the PPCPayInstExtendedEditCmd tools controller command.

    Input parameters:

    Name XPath Description
    piId /XML/piId The identifier of current payment instruction object. Mandatory.
    extDataSize /XML/extDataSize The size of the extended data of this payment instruction object.
    extData /XML/extData The extended data of this payment instruction object.

    Output parameters:



    • Validates the required parameters and if the format of these parameters is valid.
    • Calls the method updatePaymentInstructionExtendedData of to edit the payment information.
    • If the redirect URL is not specified, it calls GenericRedirectView upon successful completion, or GenericApplicationError upon failure.

    Task commands called:

    See Also:, PPCCreditEditCmdImpl, PPCPaymentEditCmdImpl, Serialized Form
    • Field Detail


        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
        See Also:
        Constant Field Values
    • Constructor Detail

      • PPCPayInstExtendedEditCmdImpl

        public PPCPayInstExtendedEditCmdImpl()
    • Method Detail

      • validateParameters

        public void validateParameters()
                                throws ECException
        This method returns the payment instruction extended data information from requestProperties and sets the information into the command local variables. It also sets the success redirect URL.
        Specified by:
        validateParameters in interface ECCommand
        validateParameters in class AbstractECTargetableCommand
        ECException - If the XMLObject cannot be parsed as expected, throw ECApplicationException.
      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the updating of payment instruction extended data information, which invokes WebSphere Commerce Payments JDBCHelper to execute this action.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class AbstractECTargetableCommand
        ECException - In case of any ECException
      • getPaymentContext

        public PaymentContext getPaymentContext()
                                         throws java.lang.Exception
        The method returns the PaymentContext that contains the order channel id, locale, payment configuration group id, and store id.
        paymentContext The current payment context
        java.lang.Exception - In case of any failure
      • getExtData

        public ExtendedData getExtData()
        This method returns the extended data of this payment instruction.
        extData The extended data of this payment instruction
      • setExtData

        public void setExtData(ExtendedData map)
        This method sets the extended data of this payment instruction.
        map - The extended data to set
      • getPaymentInstructionId

        public java.lang.String getPaymentInstructionId()
        This method returns the current payment instruction Id.
        paymentInstructionId The current payment instruction Id
      • setPaymentInstructionId

        public void setPaymentInstructionId(java.lang.String string)
        This method sets the current payment instruction Id.
        string - The payment instruction Id to set