Interface LogisticsExtensionPoint

All Superinterfaces:
org.pf4j.ExtensionPoint, ExtensionProviderPoint

public interface LogisticsExtensionPoint extends ExtensionProviderPoint
  • Method Details

    • buy

      LogisticsOrder buy(LogisticsResult productIO, Warehouse warehouseIO)
      Performs a purchase of a product from a warehouse.
      Parameters:
      productIO - the product to be purchased
      warehouseIO - the warehouse from which to purchase the product
    • query

      Collection<? extends LogisticsResultItem> query(LogisticsFilter filterIO)
      Performs a query on the available products based on the given logistics filter.
      Parameters:
      filterIO - the logistics filter used for querying the products
      Returns:
      an ArrayList of Products that match the given logistics filter
    • cancel

      void cancel(LogisticsOrder orderIO)
      Cancels a logistics order.
      Parameters:
      orderIO - the logistics order to be canceled
    • track

      Shipment track(LogisticsOrder orderIO)
      Tracks the shipment of a logistics order.
      Parameters:
      orderIO - the logistics order to track
      Returns:
      the shipment details of the logistics order