com.ibm.commerce.tools.optools.order.commands

Class CSROrderItemAddressUpdateCmdImpl

    • Field Detail

      • COPYRIGHT

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

        public static java.lang.String ERRTASK_NAME
        Error handling view name for this command.
      • orgLangId

        public java.lang.Integer orgLangId
        The language id.
    • Constructor Detail

      • CSROrderItemAddressUpdateCmdImpl

        public CSROrderItemAddressUpdateCmdImpl()
    • Method Detail

      • getAddressId

        public java.lang.String getAddressId()
        Returns the address ID.
        Returns:
        The shipping address ID to be used.
      • getCustomerId

        public java.lang.String getCustomerId()
        Returns the customer ID.
        Returns:
        The customer ID that owns the address.
      • getItems

        public java.util.Vector getItems()
        Returns all the orderItems as a Vector.
        Returns:
        A vector containing the order items to update.
      • getNLS

        public java.util.Hashtable getNLS()
        Returns the properties containing all translatable messages for this command.
        Returns:
        Name value pairs of translatable messages.
      • getOrgCmdContext

        public CommandContext getOrgCmdContext()
        Returns the original commandContext (administrator's command context).
        Returns:
        The original command context when calling this command.
      • getOrgLangId

        public java.lang.Integer getOrgLangId()
        Returns original language ID.
        Returns:
        The original language ID.
      • getOrgLocale

        public java.util.Locale getOrgLocale()
        Returns original locale.
        Returns:
        The original locale.
      • getOrgReqProperties

        public TypedProperty getOrgReqProperties()
        Returns original request properties.
        Returns:
        The original request properties.
      • getRedirectURL

        public java.lang.String getRedirectURL()
        Returns the redirect URL that is to be executed after this controller command terminates.
        Returns:
        The name of the view to be redirected to.
      • performExecute

        public void performExecute()
                            throws ECException
        This method updates the shipping address of the order item for the customer.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - if shipping address of the order item can not be updated.
      • setItems

        public void setItems(java.util.Vector newItems)
        Sets all orderItems to be updated.
        Parameters:
        newItems - A vector containing the order items to be updated.