Class ConfigurationDeepCopyHandlerImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.services.strategies.lifecycle.impl.ConfigurationDeepCopyHandlerImpl
-
- All Implemented Interfaces:
ConfigurationDeepCopyHandler
public class ConfigurationDeepCopyHandlerImpl extends java.lang.Object implements ConfigurationDeepCopyHandler
-
-
Constructor Summary
Constructors Constructor Description ConfigurationDeepCopyHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringdeepCopyConfiguration(java.lang.String configId, java.lang.String productCode, java.lang.String externalConfiguration, boolean force, ProductConfigurationRelatedObjectType targetObjectType)Deep Copies a configuration.protected ProductConfigurationServicegetConfigurationService()protected ConfigurationRetrievalOptionsprepareRetrievalOptions(ProductConfigurationRelatedObjectType targetObjectType)voidsetConfigurationService(ProductConfigurationService configurationService)
-
-
-
Method Detail
-
deepCopyConfiguration
public java.lang.String deepCopyConfiguration(java.lang.String configId, java.lang.String productCode, java.lang.String externalConfiguration, boolean force, ProductConfigurationRelatedObjectType targetObjectType)Description copied from interface:ConfigurationDeepCopyHandlerDeep Copies a configuration. The implementation can decide if a deep copy is needed; if not, the input ID is simply returned.- Specified by:
deepCopyConfigurationin interfaceConfigurationDeepCopyHandler- 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 enforcedtargetObjectType- the order entry object type for which the deep copy is executed- Returns:
- ID of new configuration if a deep copy was performed; input otherwise
-
prepareRetrievalOptions
protected ConfigurationRetrievalOptions prepareRetrievalOptions(ProductConfigurationRelatedObjectType targetObjectType)
-
getConfigurationService
protected ProductConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ProductConfigurationService configurationService)
-
-