Class DefaultPPSConfigService

java.lang.Object
com.sap.retail.sapppspricing.impl.DefaultPPSConfigService
All Implemented Interfaces:
PPSConfigService

public class DefaultPPSConfigService extends Object implements PPSConfigService
PPSConfigService accessing the configuration via the 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

      public boolean isPpsActive(ProductModel prod)
      Description copied from interface: PPSConfigService
      Determines if price calculation via PPS functionality is active
      Specified by:
      isPpsActive in interface PPSConfigService
      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: PPSConfigService
      Determines if price calculation via PPS functionality is active
      Specified by:
      isPpsActive in interface PPSConfigService
      Parameters:
      order - cart / order
      Returns:
      true if price calculation via PPS is active for given order
    • getBusinessUnitId

      public String getBusinessUnitId(ProductModel prod)
      Description copied from interface: PPSConfigService
      Find the business unit ID for which the price calculation shall take place for given product
      Specified by:
      getBusinessUnitId in interface PPSConfigService
      Parameters:
      prod - Product
      Returns:
      the business unit ID for which the price calculation shall take place for given product
    • getBusinessUnitId

      public String getBusinessUnitId(AbstractOrderModel order)
      Description copied from interface: PPSConfigService
      Find the business unit ID for which the price calculation shall take place for given order
      Specified by:
      getBusinessUnitId in interface PPSConfigService
      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: PPSConfigService
      Find client interface version for the given product
      Specified by:
      getClientInterfaceVersion in interface PPSConfigService
      Parameters:
      prod - product
      Returns:
      the client interface version for the given product
    • getClientInterfaceVersion

      public InterfaceVersion getClientInterfaceVersion(AbstractOrderModel order)
      Description copied from interface: PPSConfigService
      Find client interface version for the given order
      Specified by:
      getClientInterfaceVersion in interface PPSConfigService
      Parameters:
      order - order
      Returns:
      the client interface version for the given order
    • getSapConfig

      public SAPConfigurationModel getSapConfig(ProductModel prod)
      Description copied from interface: PPSConfigService
      Find SAPConfiguration Object from given product
      Specified by:
      getSapConfig in interface PPSConfigService
      Parameters:
      prod - Product
      Returns:
      the relevant SAP base store configuration for this product
    • getSourceSystemId

      public String getSourceSystemId(AbstractOrderModel order)
      Description copied from interface: PPSConfigService
      Find the source system ID for given order
      Specified by:
      getSourceSystemId in interface PPSConfigService
      Parameters:
      order - order
      Returns:
      the master system source id for the given order
    • getSourceSystemId

      public String getSourceSystemId(ProductModel prod)
      Description copied from interface: PPSConfigService
      Find the source system ID for given product
      Specified by:
      getSourceSystemId in interface PPSConfigService
      Parameters:
      prod - product id
      Returns:
      the master system source id for this product