com.ibm.commerce.edp.commands

Class AEDPTaskCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • AEDPTaskCmdImpl

        public AEDPTaskCmdImpl()
    • Method Detail

      • getCurrency

        public java.lang.String getCurrency()
        This method returns the currency from the globalization context.
        Specified by:
        getCurrency in interface AEDPTaskCmd
        Returns:
        The currency from the globalization context.
      • getLanguageId

        public java.lang.Integer getLanguageId()
        This method gets the language ID from the globalization context.
        Specified by:
        getLanguageId in interface AEDPTaskCmd
        Returns:
        The language ID from the globalization context.
      • getLocale

        public java.util.Locale getLocale()
        This method gets the locale from the globalization context.
        Specified by:
        getLocale in interface AEDPTaskCmd
        Returns:
        The locale from the globalization context.
      • setOrderId

        public void setOrderId(java.lang.Long paramOrderId)
        This method sets the order ID of the order to be paid for.
        Specified by:
        setOrderId in interface AEDPTaskCmd
        Parameters:
        paramOrderId - A Long that specifies the order ID.
      • getOrderId

        public java.lang.Long getOrderId()
        This method gets order ID.
        Specified by:
        getOrderId in interface AEDPTaskCmd
        Returns:
        The order 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 AbstractECTargetableCommand
      • resetServices

        public void resetServices()
                           throws EDPException
        This method resets all the service accessors.
        Throws:
        EDPException
      • getEDPOrderId

        public java.lang.Long getEDPOrderId()
        This method gets the EDP order id.
        Returns:
        A Long that specifies edpOrderId.
      • setEDPOrderId

        public void setEDPOrderId(java.lang.Long long1)
        This method sets the EDP order id.
        Parameters:
        long1 - A Long that specifies the EDP order ID .
      • setEdpException

        public final void setEdpException(EDPException exception)
        This method gets EDP exception, if any, that occurred during the processing of the request.
        Parameters:
        exception - An EDPException that thrown during the processing of the request.
      • getEdpException

        public final EDPException getEdpException()
        This method gets EDP exception, if any, that occurred during the processing of the request.
        Returns:
        The exception associated with the calling request (may be null).
      • isIdempotent

        public final boolean isIdempotent()
        This method gets if this business event has been identified as an idempotent business event.
        Returns:
        A boolean that is true if this business event has been identified as an idempotent request, and false otherwise.
      • getEDPResults

        public final EDPResults getEDPResults()
        This method obtains the results of the business event.
        Specified by:
        getEDPResults in interface AEDPTaskCmd
        Returns:
        The results of the business event.
      • setBGProcessFinished

        public void setBGProcessFinished(boolean value)
        This method sets if the running BG job has finished.
        Parameters:
        value - A boolean that specifies if the running BG job has finished.
      • setProcessBGTasksRequired

        public void setProcessBGTasksRequired(boolean value)
        This method indicates if the BG part of the request is required.
        Parameters:
        value - A boolean that specifies if the BG part of the request is required.
      • isProcessBGTasksRequired

        public boolean isProcessBGTasksRequired()
        This method gets if the BG part of the request is required.
        Returns:
        A boolean that specifies if the BG part of the request is required.
      • setStatus

        public final void setStatus(int value)
        This method sets the status of the business event.
        Parameters:
        value - An int that specifies the status of the business event.
      • getStatus

        public final int getStatus()
        This method gets the status of the business event.
        Returns:
        The status of the business event.
      • toString

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

        public void validateInsideProcessFG()
                                     throws EDPException
        This method Validates request input parameters during processFG. It will be invoked by the EDP framework before process is actually invoked
        Throws:
        EDPException - This exception thrown when an invalid parameter is found.
      • getOrderChannel

        public final java.lang.String getOrderChannel()
        This method gets the current order channel.
        Specified by:
        getOrderChannel in interface AEDPTaskCmd
        Returns:
        A String that specifies the order channel.
      • setEDPResults

        public final void setEDPResults(EDPResults localResults)
        This method sets the results of the business event request.
        Specified by:
        setEDPResults in interface AEDPTaskCmd
        Parameters:
        localResults - An EDPResults that represents the results of the request.
      • isProcessBGExecutableInFG

        public boolean isProcessBGExecutableInFG()
        This method returns whether processBG() is executable in the FG.
        Returns:
        A boolean that specifies whether processBG() is executable in the FG. False is always returned now.
      • setOrderChannel

        public void setOrderChannel(java.lang.String string)
        This method sets the current order channel.
        Parameters:
        string - A String that specifies the current order channel.