Class CPSDomainOnDemandStrategyImpl

java.lang.Object
de.hybris.platform.sap.productconfig.runtime.cps.impl.CPSDomainOnDemandStrategyImpl
All Implemented Interfaces:
CPSDomainOnDemandStrategy

public class CPSDomainOnDemandStrategyImpl extends Object implements CPSDomainOnDemandStrategy
Communication to cloud engine
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    determineFirstGroup(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel)
    Determines the first group of a configuration model
    protected void
    enrichModelWithGroup(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, String currentGroup)
     
    void
    enrichModelWithGroupForInstance(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 instance
    protected org.apache.commons.lang3.tuple.Pair<de.hybris.platform.sap.productconfig.runtime.interf.model.CsticGroupModel,de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel>
    findFirstGroupWithVisibleCstic(de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instance)
     
    protected Optional<de.hybris.platform.sap.productconfig.runtime.interf.model.CsticGroupModel>
    findGroup(de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instance, String instId, String groupName)
     
    protected Optional<de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel>
    findInstance(de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instance, String instId)
     
    protected CharonFacade
     
     
    protected de.hybris.platform.sap.productconfig.runtime.interf.ContextualConverter<CPSItem,de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel,MasterDataContext>
     
    protected de.hybris.platform.sap.productconfig.runtime.interf.services.UniqueKeyGenerator
     
     
    protected boolean
    hasGroupVisibleCstic(de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instance, de.hybris.platform.sap.productconfig.runtime.interf.model.CsticGroupModel group)
     
    protected void
    mergeDetailsForCstics(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel enrichedInstance, String instId, List<String> csticNames)
     
    protected void
    mergeDomainValues(de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instanceModel, de.hybris.platform.sap.productconfig.runtime.interf.model.CsticModel cstic)
     
    protected void
    mergeDomainValues(List<String> csticNames, de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instanceModel, de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instanceModelEnriched)
     
    protected void
    mergeGroupDetails(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel enrichedInstance, String instId, String groupName)
     
    protected void
    mergeGroupDetails(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel enrichedInstance, String instId, List<String> groupNames)
     
    void
    processRequiredGroups(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.
    void
     
    void
     
    void
    setItemModelConverter(de.hybris.platform.sap.productconfig.runtime.interf.ContextualConverter<CPSItem,de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel,MasterDataContext> instanceModelConverter)
     
    void
    setKeyGenerator(de.hybris.platform.sap.productconfig.runtime.interf.services.UniqueKeyGenerator keyGenerator)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CPSDomainOnDemandStrategyImpl

      public CPSDomainOnDemandStrategyImpl()
  • Method Details

    • setKeyGenerator

      public void setKeyGenerator(de.hybris.platform.sap.productconfig.runtime.interf.services.UniqueKeyGenerator keyGenerator)
    • getKeyGenerator

      protected de.hybris.platform.sap.productconfig.runtime.interf.services.UniqueKeyGenerator getKeyGenerator()
    • setConflictGroupHandler

      public void setConflictGroupHandler(CPSConflictGroupHandler conflictGroupHandler)
    • getConflictGroupHandler

      protected CPSConflictGroupHandler getConflictGroupHandler()
    • setMasterDataService

      public void setMasterDataService(ConfigurationMasterDataService masterDataService)
    • getMasterDataService

      protected ConfigurationMasterDataService getMasterDataService()
    • setCharonFacade

      public void setCharonFacade(CharonFacade charonFacade)
    • getCharonFacade

      protected CharonFacade getCharonFacade()
    • setItemModelConverter

      public void setItemModelConverter(de.hybris.platform.sap.productconfig.runtime.interf.ContextualConverter<CPSItem,de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel,MasterDataContext> instanceModelConverter)
    • getItemModelConverter

      protected de.hybris.platform.sap.productconfig.runtime.interf.ContextualConverter<CPSItem,de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel,MasterDataContext> getItemModelConverter()
    • processRequiredGroups

      public void processRequiredGroups(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, String currentGroup) throws de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException
      Description copied from interface: CPSDomainOnDemandStrategy
      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
      Specified by:
      processRequiredGroups in interface CPSDomainOnDemandStrategy
      Parameters:
      configModel - Model
      currentGroup - 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

      public String determineFirstGroup(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel)
      Description copied from interface: CPSDomainOnDemandStrategy
      Determines the first group of a configuration model
      Specified by:
      determineFirstGroup in interface CPSDomainOnDemandStrategy
      Parameters:
      configModel - Model
      Returns:
      ID of first group
    • enrichModelWithGroupForInstance

      public 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
      Description copied from interface: CPSDomainOnDemandStrategy
      Enriches the configuration model with data for an instance and a list of groups that belong to this instance
      Specified by:
      enrichModelWithGroupForInstance in interface CPSDomainOnDemandStrategy
      Parameters:
      configModel - Configuration model
      instanceId - Instance ID
      groupNames - List of UI groups
      Throws:
      de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException - Something went wrong with the charon call
    • enrichModelWithGroup

      protected void enrichModelWithGroup(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, String currentGroup) throws de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException
      Throws:
      de.hybris.platform.sap.productconfig.runtime.interf.ConfigurationEngineException
    • findFirstGroupWithVisibleCstic

      protected org.apache.commons.lang3.tuple.Pair<de.hybris.platform.sap.productconfig.runtime.interf.model.CsticGroupModel,de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel> findFirstGroupWithVisibleCstic(de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instance)
    • hasGroupVisibleCstic

      protected boolean hasGroupVisibleCstic(de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instance, de.hybris.platform.sap.productconfig.runtime.interf.model.CsticGroupModel group)
    • mergeGroupDetails

      protected void mergeGroupDetails(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel enrichedInstance, String instId, List<String> groupNames)
    • mergeGroupDetails

      protected void mergeGroupDetails(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel enrichedInstance, String instId, String groupName)
    • mergeDetailsForCstics

      protected void mergeDetailsForCstics(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel, de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel enrichedInstance, String instId, List<String> csticNames)
    • mergeDomainValues

      protected void mergeDomainValues(List<String> csticNames, de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instanceModel, de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instanceModelEnriched)
    • mergeDomainValues

      protected void mergeDomainValues(de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instanceModel, de.hybris.platform.sap.productconfig.runtime.interf.model.CsticModel cstic)
    • findInstance

      protected Optional<de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel> findInstance(de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instance, String instId)
    • findGroup

      protected Optional<de.hybris.platform.sap.productconfig.runtime.interf.model.CsticGroupModel> findGroup(de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel instance, String instId, String groupName)