com.ibm.commerce.order.commands

Interface CreateReleasesCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    CreateReleasesCmdImpl


    public interface CreateReleasesCmd
    extends TaskCommand
    This command will create releases for the requested order that will include all the orders items that are eligible to be released to fulfillment. An order item is considered to be eligible to release to fulfillment when:
    • The inventory has been allocated (InventoryStatus == "ALLC").
    • But the item has not been released to fulfillment (FulfillmentStatus == "INT").
    • And the requested ship date, if specified, is greater than or equal to now.

    Input is

    • An OrderAccessBean representing the order for which releases are to be created
    • A list or OrderItemAccessBeans that are the items to be used for determining which ones are eligible to be releases

    Output is

    • Output is starting and ending release numbers for the order
    • A list of com.ibm.commerce.inventory.objects.OrderReleaseAccessBeans for the created releases

    Releases are created with a "NEW" status. At release to fulfillment time, all "NEW" releases should be released to fulfillment

    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The name of this command interface.
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The name of the default implementation class for this command interface.
        See Also:
        Constant Field Values
    • Method Detail

      • setOrder

        void setOrder(OrderAccessBean abOrder)
        This methods sets the order that releases will be created for.
        Parameters:
        abOrder - the OrderAccessBean representing the order that the releases will be created for.
      • setOrderItems

        void setOrderItems(OrderItemAccessBean[] abOrderItems)
        This methods sets the order items that releases will be created for.
        Parameters:
        abOrderItems - an array of OrderItemAccessBean representing the order items for the order that should be used as candidates for inclusion in releases.
      • getLastReleaseNumber

        java.lang.Integer getLastReleaseNumber()
        This method gets the last release number created.
        Returns:
        the last release number created.
      • getFirstReleaseNumber

        java.lang.Integer getFirstReleaseNumber()
        This method gets the first release number created.
        Returns:
        the first release number created.
      • getReleases

        java.util.List getReleases()
        This method gets the generated order releases. The List contains com.ibm.commerce.inventory.objects.OrderReleaseAccessBean
        Returns:
        a list of OrderReleaseAccessBeans.