Class DefaultPPSConfigService
- java.lang.Object
-
- com.sap.retail.sapppspricing.impl.DefaultPPSConfigService
-
- All Implemented Interfaces:
PPSConfigService
public class DefaultPPSConfigService extends java.lang.Object implements PPSConfigService
PPSConfigServiceaccessing the configuration via theBaseStoreService
-
-
Constructor Summary
Constructors Constructor Description DefaultPPSConfigService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.hybris.platform.store.services.BaseStoreServicegetBaseStoreService()java.lang.StringgetBusinessUnitId(AbstractOrderModel order)Find the business unit ID for which the price calculation shall take place for given orderjava.lang.StringgetBusinessUnitId(ProductModel prod)Find the business unit ID for which the price calculation shall take place for given productInterfaceVersiongetClientInterfaceVersion(AbstractOrderModel order)Find client interface version for the given orderInterfaceVersiongetClientInterfaceVersion(ProductModel prod)Find client interface version for the given productSAPConfigurationModelgetSapConfig(ProductModel prod)Find SAPConfiguration Object from given productjava.lang.StringgetSourceSystemId(AbstractOrderModel order)Find the source system ID for given orderjava.lang.StringgetSourceSystemId(ProductModel prod)Find 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)
-
-
-
Method Detail
-
getBaseStoreService
public de.hybris.platform.store.services.BaseStoreService getBaseStoreService()
-
setBaseStoreService
public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService)
-
isPpsActive
public boolean isPpsActive(ProductModel prod)
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
public boolean isPpsActive(AbstractOrderModel order)
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
public java.lang.String getBusinessUnitId(ProductModel prod)
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
public java.lang.String getBusinessUnitId(AbstractOrderModel order)
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
public InterfaceVersion getClientInterfaceVersion(ProductModel prod)
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
public InterfaceVersion getClientInterfaceVersion(AbstractOrderModel order)
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
public SAPConfigurationModel getSapConfig(ProductModel prod)
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
public java.lang.String getSourceSystemId(AbstractOrderModel order)
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
public java.lang.String getSourceSystemId(ProductModel prod)
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
-
-