Class PersistenceConfigurationCopyStrategyImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.services.strategies.lifecycle.impl.PersistenceConfigurationCopyStrategyImpl
-
- All Implemented Interfaces:
ConfigurationCopyStrategy
public class PersistenceConfigurationCopyStrategyImpl extends java.lang.Object implements ConfigurationCopyStrategy
-
-
Constructor Summary
Constructors Constructor Description PersistenceConfigurationCopyStrategyImpl()
-
Method Summary
-
-
-
Method Detail
-
deepCopyConfiguration
public java.lang.String deepCopyConfiguration(java.lang.String configId, java.lang.String productCode, java.lang.String externalConfiguration, boolean force)Description copied from interface:ConfigurationCopyStrategyDeep Copies a configuration. The implementation can decide if a deep copy is needed; if not, the input ID is simply returned.- Specified by:
deepCopyConfigurationin interfaceConfigurationCopyStrategy- Parameters:
configId- ID of existing configurationproductCode- optional - product code of configurable product to be copiedexternalConfiguration- optional - externalConfiguration, if provided this will be used as source, instead of obtaining the external config via the provided configIdforce- iftruea deep copy is enforced- Returns:
- ID of new configuration if a deep copy was performed; input otherwise
-
finalizeClone
public void finalizeClone(AbstractOrderModel source, AbstractOrderModel target)
Description copied from interface:ConfigurationCopyStrategyHook to be called after a document with a confguration attached was cloned. It might be necessary to clone the respective configuration, as well. THis happens typically were the configuration is stored in an external system and only reference in hybris (CPS). In case the configuration is attached in an extenal seriliazed form, no more actions are necessary (SSC).- Specified by:
finalizeClonein interfaceConfigurationCopyStrategy- Parameters:
source- source documenttarget- target document
-
copyProductConfigurationDependentObjects
protected void copyProductConfigurationDependentObjects(java.util.Map<java.lang.String,java.lang.String> oldConfigId2newConfigIdMap)
-
updateCurrentUserIfRequired
protected UserModel updateCurrentUserIfRequired(AbstractOrderModel source)
-
finalizeCloneEntry
protected void finalizeCloneEntry(AbstractOrderEntryModel entry, java.util.Map<java.lang.String,java.lang.String> oldConfigId2newConfigIdMap, ProductConfigurationRelatedObjectType targetObjectType)
-
replaceProductConfiguration
protected void replaceProductConfiguration(AbstractOrderEntryModel cloneEntry, java.util.Map<java.lang.String,java.lang.String> oldConfigId2newConfigIdMap)
-
replaceBaseSiteIfPossible
protected boolean replaceBaseSiteIfPossible(AbstractOrderModel model)
-
getConfigDeepCopyHandler
protected ConfigurationDeepCopyHandler getConfigDeepCopyHandler()
-
setConfigDeepCopyHandler
public void setConfigDeepCopyHandler(ConfigurationDeepCopyHandler configDeepCopyHandler)
-
getPersistenceService
protected ProductConfigurationPersistenceService getPersistenceService()
-
setPersistenceService
public void setPersistenceService(ProductConfigurationPersistenceService persistenceService)
-
getBaseSiteService
protected BaseSiteService getBaseSiteService()
-
setBaseSiteService
public void setBaseSiteService(BaseSiteService baseSiteService)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getAssignmentResolverStrategy
protected ConfigurationAssignmentResolverStrategy getAssignmentResolverStrategy()
-
setAssignmentResolverStrategy
public void setAssignmentResolverStrategy(ConfigurationAssignmentResolverStrategy assignmentResolverStrategy)
-
getConfigurationDependencyHandler
protected ConfigurationDependencyHandler getConfigurationDependencyHandler()
-
setConfigurationDependencyHandler
public void setConfigurationDependencyHandler(ConfigurationDependencyHandler configurationDependencyHandler)
-
getCacheAccessService
protected ProductConfigurationCacheAccessService getCacheAccessService()
-
setCacheAccessService
public void setCacheAccessService(ProductConfigurationCacheAccessService cacheAccessService)
-
-