public abstract class AbstractSourcingStrategy extends Object implements SourcingStrategy
| Constructor and Description |
|---|
AbstractSourcingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkSourceCompleted(SourcingContext sourcingContext)
Check if the order was sourced.
|
protected Long |
getAvailabilityForProduct(ProductModel productModel,
SourcingLocation sourcingLocation)
Retrieve the stock available from a sourcing location
|
protected long |
getQuantitySourced(Set<SourcingResult> sourcingResults,
AbstractOrderEntryModel orderEntry)
Retrieve the quantity already sourced
|
protected SourcingFactorFactory |
getSourcingFactorFactory() |
protected SourcingResultFactory |
getSourcingResultFactory() |
Boolean |
isTerminal()
Indicates whether this sourcing strategy will allow other sourcing strategies to attempt to source the same order
entries.
|
void |
setSourcingFactorFactory(SourcingFactorFactory sourcingFactorFactory) |
void |
setSourcingResultFactory(SourcingResultFactory sourcingResultFactory) |
void |
setTerminal(Boolean terminal) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsourceprotected Long getAvailabilityForProduct(ProductModel productModel, SourcingLocation sourcingLocation)
productModel - the ProductModelsourcingLocation - the SourcingLocationprotected long getQuantitySourced(Set<SourcingResult> sourcingResults, AbstractOrderEntryModel orderEntry)
sourcingResults - SourcingContextorderEntry - the AbstractOrderEntryModelprotected boolean checkSourceCompleted(SourcingContext sourcingContext)
sourcingContext - SourcingContextpublic Boolean isTerminal()
SourcingStrategyisTerminal in interface SourcingStrategyprotected SourcingFactorFactory getSourcingFactorFactory()
public void setSourcingFactorFactory(SourcingFactorFactory sourcingFactorFactory)
protected SourcingResultFactory getSourcingResultFactory()
public void setSourcingResultFactory(SourcingResultFactory sourcingResultFactory)
public void setTerminal(Boolean terminal)
Copyright © 2017 SAP SE. All Rights Reserved.