Class CPSConflictGroupHandlerImpl
java.lang.Object
de.hybris.platform.sap.productconfig.runtime.cps.impl.CPSConflictGroupHandlerImpl
- All Implemented Interfaces:
CPSConflictGroupHandler
Default implementation of
CPSConflictGroupHandler-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddGroupToResultMap(String groupName, de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instanceModel, de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, Map<String, List<String>> conflictGroups) determineGroupsInvolvedInAssumption(de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instanceModel, String csticName) protected de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModelfindInstance(String instanceId, de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instanceModel) generateUniqueGroupName(String instanceId, String groupName, de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) protected de.hybris.platform.sap.productconfig.runtime.interf.services.UniqueKeyGeneratorprotected voidprocessConflictingAssumption(de.hybris.platform.sap.productconfig.runtime.interf.model.ConflictingAssumptionModel conflictingAssumption, de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, Map<String, List<String>> conflictGroups) retrieveNotCachedUniqueGroupIds(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) voidsetKeyGenerator(de.hybris.platform.sap.productconfig.runtime.interf.services.UniqueKeyGenerator keyGenerator)
-
Constructor Details
-
CPSConflictGroupHandlerImpl
public CPSConflictGroupHandlerImpl()
-
-
Method Details
-
retrieveNotCachedUniqueGroupIds
public Map<String,List<String>> retrieveNotCachedUniqueGroupIds(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) - Specified by:
retrieveNotCachedUniqueGroupIdsin interfaceCPSConflictGroupHandler- Parameters:
configModel- configuration model for which conflicting groups has to be determined- Returns:
- a map representing conflicting groups, where the map key is an instance id and the map value is a list of requested group names
-
processConflictingAssumption
-
findInstance
protected de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel findInstance(String instanceId, de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instanceModel) -
determineGroupsInvolvedInAssumption
-
addGroupToResultMap
-
generateUniqueGroupName
public String generateUniqueGroupName(String instanceId, String groupName, de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) - Specified by:
generateUniqueGroupNamein interfaceCPSConflictGroupHandler- Parameters:
instanceId- instance id the group belongs togroupName- group nameconfigModel- configuration model the instance belongs to- Returns:
- unique key for a UIGroup representing an Group
-
getKeyGenerator
protected de.hybris.platform.sap.productconfig.runtime.interf.services.UniqueKeyGenerator getKeyGenerator() -
setKeyGenerator
public void setKeyGenerator(de.hybris.platform.sap.productconfig.runtime.interf.services.UniqueKeyGenerator keyGenerator)
-