com.ibm.commerce.ordermanagement.util

Class ExtendBlockingConditionsCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ExtendBlockingConditionsCmd, 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 ExtendBlockingConditionsCmdImpl
    extends ControllerCommandImpl
    implements ExtendBlockingConditionsCmd
    This is the default implementation of the ExtendBlockingConditionsCmd controller command.

    Input parameters:

    Name Description
    iorderDataBean The order data bean that provides the details of the Order. Mandatory.

    Behaviour:

    This controller command provides a point of extensibility for adding order blocking conditions to order process. The results of the blocking tests need to be conveyed back in a result object along with all the reason codes for the blocks.
    Before this command is executed, the OrderDataBean must be set and available for use.
    See Also:
    ExtendBlockingResultObject, OrderDataBean, Serialized Form
    • Constructor Detail

      • ExtendBlockingConditionsCmdImpl

        public ExtendBlockingConditionsCmdImpl()
        Constructor for the implementation class, used by the factory. No data initializations are done here.
    • Method Detail

      • getExtendBlockingResult

        public com.ibm.commerce.ordermanagement.util.ExtendBlockingResultObject getExtendBlockingResult()
        Returns the result object.
        Specified by:
        getExtendBlockingResult in interface ExtendBlockingConditionsCmd
        Returns:
        ExtendBlockingResultObject The result object
        See Also:
        ExtendBlockingResultObject
      • setOrderDetails

        public void setOrderDetails(OrderDataBean orderDataBean)
        Sets the order data bean. This is mandatory for the successful execution of this command.
        Specified by:
        setOrderDetails in interface ExtendBlockingConditionsCmd
        Parameters:
        orderDataBean - The order data bean that provides the details of the Order
      • performExecute

        public void performExecute()
                            throws ECException

        Main method for setting up blocking conditions. Multiple tests can be executed here, and the result object should be created and populated here.

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - Remote, Create, Finder, Naming exceptions are converted to ECApplicationException