com.ibm.commerce.edp.commands

Class PIEditVoidCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, AEDPCtrlCmd, PIEditCmd, Protectable, 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 PIEditVoidCmdImpl
    extends AEDPPIEditCtrlCmdImpl
    implements PIEditCmd
    This is the void implementation of the PIEditCmd controller command.

    The void implementation of commands is used when anyone is intended to disable the command while keeping the single code base. Note that please use the void implementation of all commands once you decide to disable the command implementation.

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PIEditVoidCmdImpl

        public PIEditVoidCmdImpl()
        The default constructor.
    • Method Detail

      • setForcedPaymentInstructionChangeFlag

        public void setForcedPaymentInstructionChangeFlag(boolean forcedChange)

        This method sets the forced flag indicating if the request will be forced or not.

        It is up to the caller to set the forceFlag whether they want to do the a forced request or not.

        Specified by:
        setForcedPaymentInstructionChangeFlag in interface PIEditCmd
        Parameters:
        forcedChange - indicates if the request is forced or not
      • getForcedPaymentInstructionChangeFlag

        public boolean getForcedPaymentInstructionChangeFlag()
        This method gets the forced flag that indicates if this request will be forced or not.
        Returns:
        the forced flag
      • getPIID

        public java.lang.Long getPIID()
        This method gets the payment instruction ID.
        Returns:
        iPIID the payment instruction ID
      • setPIId

        public void setPIId(java.lang.Long aPIId)
        This method sets the payment instruction ID.
        Specified by:
        setPIId in interface PIEditCmd
        Parameters:
        aPIId - the payment instruction ID
      • performExecute

        public void performExecute()
                            throws ECException
        This method removes the old payment instruction and add a new payment instruction with all new protocol data and/or amount/currency.

        Actually it does nothing here.

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - if something fails
      • 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 AEDPPIEditCtrlCmdImpl
      • isAmountEditable

        public boolean isAmountEditable()
        This method returns the amount editable flag indicating if the amount is dirty or not.
        Returns:
        the flag indicating if the amount is editable
      • isPaymentDataEditable

        public boolean isPaymentDataEditable()
        This method returns the payment data editable flag indicating if the payment data is dirty or not.
        Returns:
        the payment data editable flag
      • setAmountEditable

        public void setAmountEditable(boolean amountEditable)
        This method sets the amount editable flag indicating if the amount is dirty or not. True by default.
        Specified by:
        setAmountEditable in interface PIEditCmd
        Parameters:
        amountEditable - indicates if the amount is dirty or not
      • setPaymentDataEditable

        public void setPaymentDataEditable(boolean paymentDataEditable)
        This method sets the payment data editable flag indicating if the payment data is dirty or not. True by default.
        Specified by:
        setPaymentDataEditable in interface PIEditCmd
        Parameters:
        paymentDataEditable - indicates if the payment data is dirty or not