Interface ProductConfigurationSomService

All Known Implementing Classes:
DefaultProductConfigurationService

public interface ProductConfigurationSomService
Handles product configuration for cart entries: Maintains the session attributes, converts an external representation into a runtime object and vice versa.
  • Method Summary

    Modifier and Type
    Method
    Description
    de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel
    getConfigModel(String productCode, String externalConfiguration)
    Creates a configuration runtime representation from a product and an external configuration.
    To get external configuration.
    Returns the configuration ID, supposed it is available in the hybris session
    Returns the configuration total price, supposed the configuration ID is available in the hybris session.
    boolean
    To check if key is in session
    void
    setIntoSession(String itemKey, String configId)
    Sets ID of Product Configuration session into hybris session to enable UI for reconfiguration
  • Method Details

    • setIntoSession

      void setIntoSession(String itemKey, String configId)
      Sets ID of Product Configuration session into hybris session to enable UI for reconfiguration
      Parameters:
      itemKey - Key of cart item. Corresponds to the BusinessObject.getHandle() attribute of the BOL item, or to the cart entry PK of the hybris cart in case the backend is down
      configId - ID of the configuration runtime object. The configurator is capable of accessing the session via this ID
    • isInSession

      boolean isInSession(String itemKey)
      To check if key is in session
      Parameters:
      itemKey - Key of cart item. Corresponds to the BusinessObject.getHandle() attribute of the BOL item, or to the cart entry PK of the hybris cart in case the backend is down
      Returns:
      Is a configuration is already available in the hybris session?
    • getExternalConfiguration

      String getExternalConfiguration(String itemKey)
      To get external configuration.
      Parameters:
      itemKey - Key of cart item. Corresponds to the BusinessObject.getHandle() attribute of the BOL item, or to the cart entry PK of the hybris cart in case the backend is down
      Returns:
      The external configuration, supposed the configuration is available in the hybris session
    • getConfigModel

      de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel getConfigModel(String productCode, String externalConfiguration)
      Creates a configuration runtime representation from a product and an external configuration.
      Parameters:
      productCode - Product ID
      externalConfiguration - external configuration as XML string
      Returns:
      Configuration runtime representation
    • getTotalPrice

      Double getTotalPrice(String itemKey)
      Returns the configuration total price, supposed the configuration ID is available in the hybris session.
      Parameters:
      itemKey - Key of cart item. Corresponds to the BusinessObject.getHandle() attribute of the BOL item, or to the cart entry PK of the hybris cart in case the backend is down
      Returns:
      Total price
    • getGetConfigId

      String getGetConfigId(String itemKey)
      Returns the configuration ID, supposed it is available in the hybris session
      Parameters:
      itemKey - item key
      Returns:
      Configuration ID