Interface CPSDomainOnDemandStrategy
- All Known Implementing Classes:
CPSDomainOnDemandStrategyImpl
public interface CPSDomainOnDemandStrategy
Handles requesting of domains on demand, when required
-
Method Summary
Modifier and TypeMethodDescriptiondetermineFirstGroup(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) Determines the first group of a configuration modelvoidenrichModelWithGroupForInstance(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, String instanceId, List<String> groupNames) Enriches the configuration model with data for an instance and a list of groups that belong to this instancevoidprocessRequiredGroups(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, String currentGroup) Completes a configuration model with regards to domains that still need to be read.
-
Method Details
-
processRequiredGroups
void processRequiredGroups(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, String currentGroup) throws de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException Completes a configuration model with regards to domains that still need to be read. The groups for which domain values are requested contain the current group + groups that participate in conflicts- Parameters:
configModel- ModelcurrentGroup- The group that should be interactively processed, and for which we need to request the domain values- Throws:
de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException- Something went wrong with the charon call
-
determineFirstGroup
String determineFirstGroup(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) Determines the first group of a configuration model- Parameters:
configModel- Model- Returns:
- ID of first group
-
enrichModelWithGroupForInstance
void enrichModelWithGroupForInstance(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, String instanceId, List<String> groupNames) throws de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException Enriches the configuration model with data for an instance and a list of groups that belong to this instance- Parameters:
configModel- Configuration modelinstanceId- Instance IDgroupNames- List of UI groups- Throws:
de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException- Something went wrong with the charon call
-