com.ibm.commerce.order.commands

Class OrderCreateCmdImpl

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

    Input parameters:

    Name Description
    URL The URL to be called when the command completes successfully.This parameter is mandatory.
    description The description of Order.This parameter is optional.
    outOrderName Specifies the names of name-value pairs to be added to the redirection URL.

    Output parameters:

    Name Description
    the value of outOrderName specified, default it is orderId the orderId which was created just now.
    editorId The editorId of the order.

    Behaviour:

    Task commands called:

    AccessBeans used:

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • OrderCreateCmdImpl

        public OrderCreateCmdImpl()
        The default Constructor
    • Method Detail

      • getOrderId

        public java.lang.String getOrderId()
        returns the new OrderId.
        Returns:
        order ID.
      • getUrl

        public java.lang.String getUrl()
        Gets the redirection URL to be called when the command completes successfully.
        Returns:
        URL.
      • setUrl

        public void setUrl(java.lang.String astrUrl)
        Sets the redirection URL to be called when the command completes successfully.
        Parameters:
        astrUrl - java.lang.String - redirection url string
      • getTheUserId

        public java.lang.Long getTheUserId()
        Returns super.getUserId().
        Returns:
        user id
      • getOutputOrderName

        public java.lang.String getOutputOrderName()
        Returns the outputOrderName.
        Returns:
        String
      • setOutputOrderName

        public void setOutputOrderName(java.lang.String anOutputOrderName)
        Sets the outputOrderName.
        Parameters:
        anOutputOrderName - The outputOrderName to set
      • getDescription

        public java.lang.String getDescription()
        Returns:
        the order description
      • setDescription

        public void setDescription(java.lang.String string)
        Parameters:
        string - the order description
      • reset

        public void reset()
        Reset the command state to the initial state
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setOrderId

        public void setOrderId(java.lang.String string)
        Set the orderId that is being created
        Parameters:
        string - representation of the orderId
      • setEditor

        public void setEditor(OrderAccessBean anOrder)
                       throws ECException
        Sets the editor ID with the value. EditorId from request properties always override the value from context
        Parameters:
        anOrder - as OrderAcessBean
        Throws:
        ECException
      • getEditorId

        public java.lang.Long getEditorId()
        Get the editor Id
        Returns:
        the editor Id
      • setEditorId

        public void setEditorId(java.lang.Long newEditor_id)
        Set the editor Id
        Parameters:
        newEditor_id - Long