Class NoRestrictionsStrategy
- java.lang.Object
-
- de.hybris.platform.warehousing.sourcing.strategy.AbstractSourcingStrategy
-
- de.hybris.platform.warehousing.sourcing.strategy.impl.NoRestrictionsStrategy
-
- All Implemented Interfaces:
SourcingStrategy
public class NoRestrictionsStrategy extends AbstractSourcingStrategy
Strategy allows an order to be split into multiple locations. The strategy creates sources for order entry based on location availability.
-
-
Constructor Summary
Constructors Constructor Description NoRestrictionsStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateSourcingResult(SourcingContext sourcingContext, AbstractOrderEntryModel orderEntry, SourcingLocation fitnessSourcingLocation)It creates a sourcing resultprotected FitnessServicegetFitnessService()voidsetFitnessService(FitnessService fitnessService)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
-
-
-
-
Method Detail
-
source
public void source(SourcingContext sourcingContext)
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
-
createSourcingResult
protected void createSourcingResult(SourcingContext sourcingContext, AbstractOrderEntryModel orderEntry, SourcingLocation fitnessSourcingLocation)
It creates a sourcing result- Parameters:
sourcingContext- theSourcingContextorderEntry- theAbstractOrderEntryModelfitnessSourcingLocation- theSourcingLocation
-
getFitnessService
protected FitnessService getFitnessService()
-
setFitnessService
public void setFitnessService(FitnessService fitnessService)
-
-