com.ibm.commerce.edp.commands

Class QueryPIsCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, AEDPPaymentTaskCmd, AEDPTaskCmd, QueryPIsCmd, 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 QueryPIsCmdImpl
    extends AEDPPaymentTaskCmdImpl
    implements QueryPIsCmd
    This is the default implementation of the QueryPIsCmd task command.

    Behaviour:

    • This command gets all payment instructions associated with the current order. It calls the corresponding method of QueryHandler to get the payment instructions of current order.

    Input parameters:

    orderId A Long that indicates the id of the current order.
    commandContext The command context.

    Output parameters:

    None.

    Task commands called:

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

      • QueryPIsCmdImpl

        public QueryPIsCmdImpl()
        The default constructor.
    • Method Detail

      • setMaskSensitiveData

        public void setMaskSensitiveData(boolean value)

        This method sets if sensitive data is to be masked in payment instructions.

        The default is to mask the sensitive data if this method is not invoked.

        Specified by:
        setMaskSensitiveData in interface QueryPIsCmd
        Parameters:
        value - A boolean that indicates if sensitive data is to be masked in payment instructions.
      • getPIs

        public java.util.ArrayList getPIs()
        This method gets the list of payment instructions.
        Specified by:
        getPIs in interface QueryPIsCmd
        Returns:
        An ArrayList that represents the list of payment instructions.
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()

        This method checks if the command is ready to be executed.

        This method is called by the WC Command Framework to check if all mandatory parameters have been properly set for this command. This is done before the Framework calls the performExecute method of the command.

        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        A boolean that indicates if the command is ready to execute.
      • performExecute

        public void performExecute()
                            throws ECException

        This method executes the business logic of this command implementation.

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - this exception is thrown for any kind of failure coming from event-driven payments subcomponent
      • 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 AEDPPaymentTaskCmdImpl