public abstract class AbstractSourcingStrategy extends java.lang.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 java.lang.Long |
getAvailabilityForProduct(ProductModel productModel,
SourcingLocation sourcingLocation)
Retrieve the stock available from a sourcing location
|
protected long |
getQuantitySourced(java.util.Set<SourcingResult> sourcingResults,
AbstractOrderEntryModel orderEntry)
Retrieve the quantity already sourced
|
protected SourcingResultFactory |
getSourcingResultFactory() |
java.lang.Boolean |
isTerminal()
Indicates whether this sourcing strategy will allow other sourcing strategies to attempt to source the same order
entries.
|
void |
setSourcingResultFactory(SourcingResultFactory sourcingResultFactory) |
void |
setTerminal(java.lang.Boolean terminal) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsourceprotected java.lang.Long getAvailabilityForProduct(ProductModel productModel, SourcingLocation sourcingLocation)
productModel - the ProductModelsourcingLocation - the SourcingLocationprotected long getQuantitySourced(java.util.Set<SourcingResult> sourcingResults, AbstractOrderEntryModel orderEntry)
sourcingResults - SourcingContextorderEntry - the AbstractOrderEntryModelprotected boolean checkSourceCompleted(SourcingContext sourcingContext)
sourcingContext - SourcingContextpublic java.lang.Boolean isTerminal()
SourcingStrategyisTerminal in interface SourcingStrategyprotected SourcingResultFactory getSourcingResultFactory()
public void setSourcingResultFactory(SourcingResultFactory sourcingResultFactory)
public void setTerminal(java.lang.Boolean terminal)
Copyright © 2018 SAP SE. All Rights Reserved.