Class CharonFacadeImplTest.CharonFacadeForDefaultTest
java.lang.Object
de.hybris.platform.sap.productconfig.runtime.cps.impl.CharonFacadeImplTest.CharonFacadeForDefaultTest
- All Implemented Interfaces:
CharonFacade
- Enclosing class:
- CharonFacadeImplTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConfigurationFromExternal(CPSExternalConfiguration externalConfigStructured, String contextProduct) Creates a new runtime configuration from the external typed representation of the configurationcreateConfigurationFromExternal(String externalConfiguration, String contextProduct) Creates a new runtime configuration from the external representation of the configuration.createDefaultConfiguration(de.hybris.platform.sap.productconfig.runtime.interf.KBKey kbKey) Create default configuration and handle cookiesgetConfiguration(String configId) Gets configuration, sends cookies along with request.getExternalConfiguration(String configId) Retrieves the external representation for a given runtime configurationgetItemWithGroupDetails(String configId, String instanceId, List<String> groupNames) Reads an item within a configuration and returns all details only for the specified groups of this instancebooleanAre domain values ready on demand, on group level?voidreleaseSession(String configId, String version) Deletes the session for the specified runtime configuration on the clientupdateConfiguration(CPSConfiguration configuration) Updates configuration, sends cookies along with request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.sap.productconfig.runtime.cps.CharonFacade
createConfigurationFromExternalWithDate
-
Constructor Details
-
CharonFacadeForDefaultTest
public CharonFacadeForDefaultTest()
-
-
Method Details
-
createDefaultConfiguration
public CPSConfiguration createDefaultConfiguration(de.hybris.platform.sap.productconfig.runtime.interf.KBKey kbKey) Description copied from interface:CharonFacadeCreate default configuration and handle cookies- Specified by:
createDefaultConfigurationin interfaceCharonFacade- 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:CharonFacadeRetrieves the external representation for a given runtime configuration- Specified by:
getExternalConfigurationin interfaceCharonFacade- 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
Description copied from interface:CharonFacadeDeletes the session for the specified runtime configuration on the client- Specified by:
releaseSessionin interfaceCharonFacade- Parameters:
configId- id of the runtime configuration to be deletedversion- 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:CharonFacadeUpdates configuration, sends cookies along with request. The cookies are handled internally and received from theCPSResponseAttributeStrategy- Specified by:
updateConfigurationin interfaceCharonFacade- 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:CharonFacadeGets configuration, sends cookies along with request. The cookies are handled internally and received from theCPSResponseAttributeStrategy- Specified by:
getConfigurationin interfaceCharonFacade- 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:CharonFacadeCreates a new runtime configuration from the external representation of the configuration. The KB version will not be re-determined.- Specified by:
createConfigurationFromExternalin interfaceCharonFacade- Parameters:
externalConfiguration- external representation of the configurationcontextProduct- context product- Returns:
- runtime configuration based on the external representation
-
createConfigurationFromExternal
public CPSConfiguration createConfigurationFromExternal(CPSExternalConfiguration externalConfigStructured, String contextProduct) Description copied from interface:CharonFacadeCreates a new runtime configuration from the external typed representation of the configuration- Specified by:
createConfigurationFromExternalin interfaceCharonFacade- Parameters:
externalConfigStructured- structured external configurationcontextProduct- 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:CharonFacadeReads an item within a configuration and returns all details only for the specified groups of this instance- Specified by:
getItemWithGroupDetailsin interfaceCharonFacade- Parameters:
configId- Configuration IDinstanceId- Instance Id for which group data are requestedgroupNames- 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:CharonFacadeAre domain values ready on demand, on group level?- Specified by:
isReadDomainValuesOnDemandin interfaceCharonFacade- Returns:
- Domain values read on demand?
-