Interface SourcingFactorService
- All Known Implementing Classes:
DefaultSourcingFactorService
public interface SourcingFactorService
Service used to build/retrieve defined list of sourcing factors
A factor must have a weight associated.
Example:
A factor must have a weight associated.
Example:
| Sourcing Factor | Weight |
|---|---|
| DISTANCE | 50 |
| ALLOCATION | 30 |
| PRIORITY | 20 |
-
Method Summary
Modifier and TypeMethodDescriptiongetAllSourcingFactorsForBaseStore(BaseStoreModel baseStore) Get the list of all the sourcing factors for the givenBaseStoreModel.getSourcingFactor(SourcingFactorIdentifiersEnum sourcingFactorId, BaseStoreModel baseStore) Create or retrieve the requested sourcing factor according to the sourcingFactorId and the baseStore given in parameter.
-
Method Details
-
getSourcingFactor
SourcingFactor getSourcingFactor(SourcingFactorIdentifiersEnum sourcingFactorId, BaseStoreModel baseStore) Create or retrieve the requested sourcing factor according to the sourcingFactorId and the baseStore given in parameter.- Parameters:
sourcingFactorId- the identifier of the sourcing factorSourcingFactorIdentifiersEnumbaseStore- the baseStore- Returns:
- the
SourcingFactor
-
getAllSourcingFactorsForBaseStore
Get the list of all the sourcing factors for the givenBaseStoreModel.- Parameters:
baseStore- the baseStore- Returns:
- the list of
SourcingFactor
-