Class DefaultPPSConfigService
java.lang.Object
com.sap.retail.sapppspricing.impl.DefaultPPSConfigService
- All Implemented Interfaces:
PPSConfigService
PPSConfigService accessing the configuration via the BaseStoreService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.store.services.BaseStoreServiceFind the business unit ID for which the price calculation shall take place for given orderFind the business unit ID for which the price calculation shall take place for given productFind client interface version for the given orderFind client interface version for the given productgetSapConfig(ProductModel prod) Find SAPConfiguration Object from given productFind the source system ID for given orderFind the source system ID for given productbooleanisPpsActive(AbstractOrderModel order) Determines if price calculation via PPS functionality is activebooleanisPpsActive(ProductModel prod) Determines if price calculation via PPS functionality is activevoidsetBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService)
-
Constructor Details
-
DefaultPPSConfigService
public DefaultPPSConfigService()
-
-
Method Details
-
getBaseStoreService
public de.hybris.platform.store.services.BaseStoreService getBaseStoreService() -
setBaseStoreService
public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) -
isPpsActive
Description copied from interface:PPSConfigServiceDetermines if price calculation via PPS functionality is active- Specified by:
isPpsActivein interfacePPSConfigService- Parameters:
prod- Product- Returns:
- true if price calculation via PPS is active for given product
-
isPpsActive
Description copied from interface:PPSConfigServiceDetermines if price calculation via PPS functionality is active- Specified by:
isPpsActivein interfacePPSConfigService- Parameters:
order- cart / order- Returns:
- true if price calculation via PPS is active for given order
-
getBusinessUnitId
Description copied from interface:PPSConfigServiceFind the business unit ID for which the price calculation shall take place for given product- Specified by:
getBusinessUnitIdin interfacePPSConfigService- Parameters:
prod- Product- Returns:
- the business unit ID for which the price calculation shall take place for given product
-
getBusinessUnitId
Description copied from interface:PPSConfigServiceFind the business unit ID for which the price calculation shall take place for given order- Specified by:
getBusinessUnitIdin interfacePPSConfigService- Parameters:
order- order- Returns:
- the business unit ID for which the price calculation shall take place for given order
-
getClientInterfaceVersion
Description copied from interface:PPSConfigServiceFind client interface version for the given product- Specified by:
getClientInterfaceVersionin interfacePPSConfigService- Parameters:
prod- product- Returns:
- the client interface version for the given product
-
getClientInterfaceVersion
Description copied from interface:PPSConfigServiceFind client interface version for the given order- Specified by:
getClientInterfaceVersionin interfacePPSConfigService- Parameters:
order- order- Returns:
- the client interface version for the given order
-
getSapConfig
Description copied from interface:PPSConfigServiceFind SAPConfiguration Object from given product- Specified by:
getSapConfigin interfacePPSConfigService- Parameters:
prod- Product- Returns:
- the relevant SAP base store configuration for this product
-
getSourceSystemId
Description copied from interface:PPSConfigServiceFind the source system ID for given order- Specified by:
getSourceSystemIdin interfacePPSConfigService- Parameters:
order- order- Returns:
- the master system source id for the given order
-
getSourceSystemId
Description copied from interface:PPSConfigServiceFind the source system ID for given product- Specified by:
getSourceSystemIdin interfacePPSConfigService- Parameters:
prod- product id- Returns:
- the master system source id for this product
-