Class CharonFacadeImplTest.CharonFacadeForDefaultTest

java.lang.Object
de.hybris.platform.sap.productconfig.runtime.cps.impl.CharonFacadeImplTest.CharonFacadeForDefaultTest
All Implemented Interfaces:
CharonFacade
Enclosing class:
CharonFacadeImplTest

public class CharonFacadeImplTest.CharonFacadeForDefaultTest extends Object implements CharonFacade
  • Constructor Details

    • CharonFacadeForDefaultTest

      public CharonFacadeForDefaultTest()
  • Method Details

    • createDefaultConfiguration

      public CPSConfiguration createDefaultConfiguration(de.hybris.platform.sap.productconfig.runtime.interf.KBKey kbKey)
      Description copied from interface: CharonFacade
      Create default configuration and handle cookies
      Specified by:
      createDefaultConfiguration in interface CharonFacade
      Parameters:
      kbKey - key of the knowledgebase
      Returns:
      runtime configuration
    • getExternalConfiguration

      public String getExternalConfiguration(String configId) throws de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException
      Description copied from interface: CharonFacade
      Retrieves the external representation for a given runtime configuration
      Specified by:
      getExternalConfiguration in interface CharonFacade
      Parameters:
      configId - id of the runtime configuration
      Returns:
      external representation of the runtime configuration
      Throws:
      de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException - Service has failed, e.g. because session timed out
    • releaseSession

      public void releaseSession(String configId, String version)
      Description copied from interface: CharonFacade
      Deletes the session for the specified runtime configuration on the client
      Specified by:
      releaseSession in interface CharonFacade
      Parameters:
      configId - id of the runtime configuration to be deleted
      version - version of the runtime configuration to be deleted
    • updateConfiguration

      public String updateConfiguration(CPSConfiguration configuration) throws de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException
      Description copied from interface: CharonFacade
      Updates configuration, sends cookies along with request. The cookies are handled internally and received from the CPSResponseAttributeStrategy
      Specified by:
      updateConfiguration in interface CharonFacade
      Parameters:
      configuration - runtime configuration that includes only the updates
      Returns:
      version of the updated runtime configuration
      Throws:
      de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException - when service call fails
    • getConfiguration

      public CPSConfiguration getConfiguration(String configId) throws de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException
      Description copied from interface: CharonFacade
      Gets configuration, sends cookies along with request. The cookies are handled internally and received from the CPSResponseAttributeStrategy
      Specified by:
      getConfiguration in interface CharonFacade
      Parameters:
      configId - configuration id
      Returns:
      current state of the runtime configuration
      Throws:
      de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException - when service call fails
    • createConfigurationFromExternal

      public CPSConfiguration createConfigurationFromExternal(String externalConfiguration, String contextProduct)
      Description copied from interface: CharonFacade
      Creates a new runtime configuration from the external representation of the configuration. The KB version will not be re-determined.
      Specified by:
      createConfigurationFromExternal in interface CharonFacade
      Parameters:
      externalConfiguration - external representation of the configuration
      contextProduct - context product
      Returns:
      runtime configuration based on the external representation
    • createConfigurationFromExternal

      public CPSConfiguration createConfigurationFromExternal(CPSExternalConfiguration externalConfigStructured, String contextProduct)
      Description copied from interface: CharonFacade
      Creates a new runtime configuration from the external typed representation of the configuration
      Specified by:
      createConfigurationFromExternal in interface CharonFacade
      Parameters:
      externalConfigStructured - structured external configuration
      contextProduct - context product
      Returns:
      Runtime representation
    • getItemWithGroupDetails

      public CPSItem getItemWithGroupDetails(String configId, String instanceId, List<String> groupNames) throws de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException
      Description copied from interface: CharonFacade
      Reads an item within a configuration and returns all details only for the specified groups of this instance
      Specified by:
      getItemWithGroupDetails in interface CharonFacade
      Parameters:
      configId - Configuration ID
      instanceId - Instance Id for which group data are requested
      groupNames - List of requested group names for which we want to read the group details.
      Returns:
      Requested characteristic groups including domain values and all details
      Throws:
      de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException - Indicates that the CPS call could not be performed
    • isReadDomainValuesOnDemand

      public boolean isReadDomainValuesOnDemand()
      Description copied from interface: CharonFacade
      Are domain values ready on demand, on group level?
      Specified by:
      isReadDomainValuesOnDemand in interface CharonFacade
      Returns:
      Domain values read on demand?