java.lang.Object
de.hybris.platform.warehousing.sourcing.strategy.AbstractSourcingStrategy
de.hybris.platform.warehousing.sourcing.strategy.impl.PickupStrategy
All Implemented Interfaces:
SourcingStrategy

public class PickupStrategy extends AbstractSourcingStrategy
Strategy to apply when the order is to be picked up at a specific location.
  • Field Details

  • Constructor Details

    • PickupStrategy

      public PickupStrategy()
  • Method Details

    • source

      public void source(SourcingContext sourcingContext)
      Description copied from interface: SourcingStrategy
      Determine which order entries/order item quantities should be sourced from which sourcing locations.
      Parameters:
      sourcingContext - - the sourcing context; cannot be null
    • canSourceOrderEntry

      protected boolean canSourceOrderEntry(AbstractOrderEntryModel entry, SourcingLocation location)
      Validates if the given SourcingLocation can be used to source the given AbstractOrderEntryModel
      Parameters:
      entry - given AbstractOrderEntryModel
      location - given SourcingLocation
      Returns:
      boolean to indicate if the given location is eligible to fulfill the order entry
    • createPickupSourcingResult

      protected void createPickupSourcingResult(SourcingContext sourcingContext, SourcingLocation location)
      Create a sourcing result if the pickup location specified in the order has some stocks available for a given product and store it in the sourcing context.
      When there is insufficient stock for a given product, the sourcing context is marked as not complete.
      When there is no stock for a given product, no sourcing result is created.
      Parameters:
      sourcingContext - - the sourcing context
      location - - the location where we getting the product availability.
    • getPosSelectionStrategy

      protected PosSelectionStrategy getPosSelectionStrategy()
    • setPosSelectionStrategy

      public void setPosSelectionStrategy(PosSelectionStrategy posSelectionStrategy)