com.ibm.commerce.ordermanagement.commands

Class AdvancedOrderEditEndCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, AdvancedOrderEditEndCmd, 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 AdvancedOrderEditEndCmdImpl
    extends com.ibm.commerce.ordermanagement.commands.AdvancedOrderEditBaseCmdImpl
    implements AdvancedOrderEditEndCmd
    This is the default implementation of the AdvancedOrderEditEndCmd controller command.

    Input parameters:

    Name Description
    orderId (Required) The identifier of the order undergoing the edit or change.

    Behaviour:

    This AdvancedOrderEditEndCmd implementation class and AdvancedOrderEditBeginCmd stage an order for editing. Between the execution of AdvancedOrderEditBeginCmd and AdvancedOrderEditEndCmd, many types of order editing actions can occur (for example, OrderItemUpdateCmd, PIEdit, OrderCopy, and so forth).

    To invoke this command, a valid order ID has to be passed in from the command context. The order shall be in an editable state. Orders that are in cancel (X) or close (D) state cannot be edited. An exception is thrown if an invalid order ID is passed.

    If the command is successful, the editorId of the order will be NULL. And the order will not be processed by the system until the order gets submitted again.

    If unsuccessful, the command throws the ECException.

    Task commands called:

    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

      • AdvancedOrderEditEndCmdImpl

        public AdvancedOrderEditEndCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        Executes the business logic of this command implementation.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Specified by:
        performExecute in class com.ibm.commerce.ordermanagement.commands.AdvancedOrderEditBaseCmdImpl
        Throws:
        ECException
      • setRequestProperties

        public void setRequestProperties(TypedProperty reqProperties)
                                  throws ECException
        This method sets the request properties of this command implementation.
        Specified by:
        setRequestProperties in interface ControllerCommand
        Overrides:
        setRequestProperties in class com.ibm.commerce.ordermanagement.commands.AdvancedOrderEditBaseCmdImpl
        Parameters:
        reqProperties - the request properties
        Throws:
        ECException
      • getPoNumber

        public java.lang.String getPoNumber()
        Gets the PO number
        Returns:
        PO number
      • setPoNumber

        public void setPoNumber(java.lang.String string)
        This method sets the PO number.
        Parameters:
        string - PO number
      • reset

        public void reset()
        This method resets its states variables.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class com.ibm.commerce.ordermanagement.commands.AdvancedOrderEditBaseCmdImpl