public class DefaultSourcingFactorService extends Object implements SourcingFactorService
SourcingFactorService| Constructor and Description |
|---|
DefaultSourcingFactorService() |
| Modifier and Type | Method and Description |
|---|---|
protected SourcingFactor |
createSourcingFactorFromSourcingConfig(SourcingFactorIdentifiersEnum sourcingFactorId,
SourcingConfigModel sourcingConfig)
Create a single sourcing factor from the SourcingConfig.
|
Set<SourcingFactor> |
getAllSourcingFactorsForBaseStore(BaseStoreModel baseStore)
Get the list of all the sourcing factors for the given
BaseStoreModel. |
SourcingFactor |
getSourcingFactor(SourcingFactorIdentifiersEnum sourcingFactorId,
BaseStoreModel baseStore)
Create or retrieve the requested sourcing factor according to the sourcingFactorId and the baseStore given in parameter.
|
protected Map<SourcingFactorIdentifiersEnum,SourcingFactor> |
getSourcingFactorsMapForBaseStore(BaseStoreModel baseStore)
Creates Map of SourcingFactorIdentifiersEnum and SourcingFactor for the given baseStore
|
protected int |
loadFactorValue(SourcingFactorIdentifiersEnum sourcingFactorId,
SourcingConfigModel sourcingConfig)
Load the integer value that corresponds to the sourcing factor identifier provided.
|
public SourcingFactor getSourcingFactor(SourcingFactorIdentifiersEnum sourcingFactorId, BaseStoreModel baseStore)
SourcingFactorServicegetSourcingFactor in interface SourcingFactorServicebaseStore - the baseStoreSourcingFactorpublic Set<SourcingFactor> getAllSourcingFactorsForBaseStore(BaseStoreModel baseStore)
SourcingFactorServiceBaseStoreModel.getAllSourcingFactorsForBaseStore in interface SourcingFactorServicebaseStore - the baseStoreSourcingFactorprotected Map<SourcingFactorIdentifiersEnum,SourcingFactor> getSourcingFactorsMapForBaseStore(BaseStoreModel baseStore)
baseStore - the baseStoreprotected SourcingFactor createSourcingFactorFromSourcingConfig(SourcingFactorIdentifiersEnum sourcingFactorId, SourcingConfigModel sourcingConfig)
sourcingFactorId - the sourcingFactorIdsourcingConfig - the sourcingConfig for the given baseStoreprotected int loadFactorValue(SourcingFactorIdentifiersEnum sourcingFactorId, SourcingConfigModel sourcingConfig)
sourcingFactorId - the sourcingFactorIdsourcingConfig - the sourcingConfig for the given baseStoreCopyright © 2017 SAP SE. All Rights Reserved.