com.ibm.commerce.edp.commands

Class AEDPPaymentTaskCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • AEDPPaymentTaskCmdImpl

        public AEDPPaymentTaskCmdImpl()
    • Method Detail

      • isBgJobInWorking

        public boolean isBgJobInWorking()
                                 throws InternalException,
                                        J2EEException,
                                        InputException
        This method gets the current pending status of the order. This actually checks the background job status of the EDPOrder object.
        Returns:
        This method returns true if the order is in pending status, and otherwise returns false.
        Throws:
        InternalException - This exception is thrown if an internal logic error is detected.
        J2EEException - This exception is thrown if EJBs cannot be accessed.
        InputException - This exception is thrown if an invalid order id / store id combination is provided in the request.
      • setBgJobStatusInDb

        public void setBgJobStatusInDb(java.lang.Integer bgJobStatus)
                                throws J2EEException,
                                       InputException
        This method sets the background job status on the current order.
        Parameters:
        bgJobStatus - the new status
        Throws:
        J2EEException - if EJBs cannot be accessed
        InputException - if an invalid status or invalid order is selected
      • toString

        public java.lang.String toString()
        This method converts this request data into a human-readable string.
        Overrides:
        toString in class AEDPTaskCmdImpl
        Returns:
        a human-readable string representing the data of this request
      • getErrorMessageMap

        public java.util.Map getErrorMessageMap()
        This method returns the map containing error message of each Payment Instruction. The map has the same structure as the returned map of getMessageOfFailedPayments(CommonBaseEvent).
        Returns:
        the map containing error message of each Payment Instruction
        See Also:
        getMessageOfFailedPayments(CommonBaseEvent)
      • setErrorMessageMap

        public void setErrorMessageMap(java.util.Map localErrorMessageMap)
        This method sets the map containing error message of each Payment Instruction.
        Parameters:
        localErrorMessageMap - the map containing error message of each Payment Instruction
      • isProcessBGExecutableInFG

        public boolean isProcessBGExecutableInFG()
        This method judges if the backend job could be executable in foreground.
        Overrides:
        isProcessBGExecutableInFG in class AEDPTaskCmdImpl
        Returns:
        This method returns a boolean that represents if the backend job could be executable in foreground. It returns true if the backend job could be executable in foreground and false otherwise.
      • insertActionListToActionDetailHash

        public void insertActionListToActionDetailHash(java.lang.Long piId,
                                                       java.util.List actions)
        This method inserts actions list to the HashMap ,piId is key
        Parameters:
        piId - A Long that specifies the current payment instruction id.
        actions - A List that specifies the current actions for this payment instruction.
      • insertActionListToEditActionDetailHash

        public void insertActionListToEditActionDetailHash(java.lang.Long piId,
                                                           java.util.List actions)
        This method inserts actions list to edit actions HashMap. The piId is key.
        Parameters:
        piId - A Long that specifies the current payment instruction id.
        actions - A List that specifies the current list of actions for this payment instruction
      • getStoreId

        public java.lang.Integer getStoreId()
        This method gets the current store id.
        Specified by:
        getStoreId in interface ECCommand
        Overrides:
        getStoreId in class AbstractECTargetableCommand
        Returns:
        This method returns an Integer that represents the current store id.
      • setStoreId

        public void setStoreId(java.lang.Integer integer)
        This method sets the current store id.
        Parameters:
        integer - An Integer that specifies the current store id.
      • 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 AEDPTaskCmdImpl