Class PickupStrategy
java.lang.Object
de.hybris.platform.warehousing.sourcing.strategy.AbstractSourcingStrategy
de.hybris.platform.warehousing.sourcing.strategy.impl.PickupStrategy
- All Implemented Interfaces:
SourcingStrategy
Strategy to apply when the order is to be picked up at a specific location.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanSourceOrderEntry(AbstractOrderEntryModel entry, SourcingLocation location) Validates if the givenSourcingLocationcan be used to source the givenAbstractOrderEntryModelprotected voidcreatePickupSourcingResult(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.protected PosSelectionStrategyvoidsetPosSelectionStrategy(PosSelectionStrategy posSelectionStrategy) voidsource(SourcingContext sourcingContext) Determine which order entries/order item quantities should be sourced from which sourcing locations.Methods inherited from class de.hybris.platform.warehousing.sourcing.strategy.AbstractSourcingStrategy
checkSourceCompleted, getAvailabilityForProduct, getQuantitySourced, getSourcingResultFactory, isTerminal, setSourcingResultFactory, setTerminal
-
Field Details
-
CODE_PICKUP
- See Also:
-
-
Constructor Details
-
PickupStrategy
public PickupStrategy()
-
-
Method Details
-
source
Description copied from interface:SourcingStrategyDetermine which order entries/order item quantities should be sourced from which sourcing locations.- Parameters:
sourcingContext- - the sourcing context; cannot be null
-
canSourceOrderEntry
Validates if the givenSourcingLocationcan be used to source the givenAbstractOrderEntryModel- Parameters:
entry- givenAbstractOrderEntryModellocation- givenSourcingLocation- 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 contextlocation- - the location where we getting the product availability.
-
getPosSelectionStrategy
-
setPosSelectionStrategy
-