com.ibm.commerce.order.commands

Class SetPendingOrderCmdImpl

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

    Behaviour:

    Input parameters:

    Name Description
    storeId The reference number of a store.
    URL (Required) The URL to be called when the command completes successfully.
    orderId Specifies an order using the order reference number or one of the Order abbreviations ".", "*", ".t", "*t". This parameter can be repeated.
  • If the parameter is omitted, nothing will be set to current. And all pending orders that have been marked current, for the specified store, will be unmarked.
  • If a specified pending order no longer exists, it is not set to current.
  • outOrderName Specifies name-value pairs to be added to the redirection URL specified by the URL parameter. This parameter can be repeated.

    Output parameters:

    None.

    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

      • SetPendingOrderCmdImpl

        public SetPendingOrderCmdImpl()
        The Default constructor.
    • Method Detail

      • checkIsAllowed

        public void checkIsAllowed(AccessVector resource,
                                   java.lang.String action)
                            throws ECException
        This method checks if the access control by calling checkIsAllowed() in the super classes.
        Parameters:
        resource - An AccessVector that represents the vector of resource.
        action - A String that specifies the action.
        Throws:
        ECException
      • reset

        public void reset()
        This method resets the instance fields.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setField1

        public void setField1(java.lang.Integer aField1)
        This method sets the customizable field 1.
        Specified by:
        setField1 in interface SetPendingOrderCmd
        Parameters:
        aField1 - An Integer that specifies the field1.
      • setField2

        public void setField2(java.lang.String aField2)
        This method sets the customizable field 2.
        Specified by:
        setField2 in interface SetPendingOrderCmd
        Parameters:
        aField2 - A String that specifies the field2
      • setOrderIds

        public void setOrderIds(java.lang.String[] aNumbers)
        This method specifies zero or more orders, using order reference numbers or one of the special abbreviations "**", ".", "*", ".t", "*t" and so forth. See OrderItem Commands for a description of these abbreviations.
        Specified by:
        setOrderIds in interface SetPendingOrderCmd
        Parameters:
        aNumbers - A String[] that specifies the list of order ids.
      • setOutOrderNames

        public void setOutOrderNames(java.lang.String[] aNames)
        This method specifies the names of the name-value pairs to be added to the redirection URL. The values of the added name-value pairs are the reference numbers of the input orders.
        Specified by:
        setOutOrderNames in interface SetPendingOrderCmd
        Parameters:
        aNames - A String[] that specifies out order names.
      • setStoreId

        public void setStoreId(java.lang.Integer anStoreId)
        This method specifies the stores of the orders that are listed.
        Specified by:
        setStoreId in interface SetPendingOrderCmd
        Parameters:
        anStoreId - An Integer that specifies store id.