Class ConfigurationDeepCopyHandlerImpl
java.lang.Object
de.hybris.platform.sap.productconfig.services.strategies.lifecycle.impl.ConfigurationDeepCopyHandlerImpl
- All Implemented Interfaces:
ConfigurationDeepCopyHandler
public class ConfigurationDeepCopyHandlerImpl
extends Object
implements ConfigurationDeepCopyHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdeepCopy(String configId, String productCode, String externalConfiguration, ProductConfigurationRelatedObjectType targetObjectType) protected StringdeepCopy(String configId, String productCode, String externalConfiguration, ProductConfigurationRelatedObjectType targetObjectType, boolean withDate) deepCopyConfiguration(String configId, String productCode, String externalConfiguration, boolean force, ProductConfigurationRelatedObjectType targetObjectType) Deep Copies a configuration.deepCopyConfigurationWithDate(String configId, String productCode, String externalConfiguration, boolean force, ProductConfigurationRelatedObjectType targetObjectType) Deep Copies a configuration and re-runs KB determination using the current date.protected ProductConfigurationServiceprotected ConfigurationRetrievalOptionsprepareRetrievalOptions(ProductConfigurationRelatedObjectType targetObjectType) protected ConfigurationRetrievalOptionsprepareRetrievalOptions(ProductConfigurationRelatedObjectType targetObjectType, boolean withDate) voidsetConfigurationService(ProductConfigurationService configurationService)
-
Constructor Details
-
ConfigurationDeepCopyHandlerImpl
public ConfigurationDeepCopyHandlerImpl()
-
-
Method Details
-
deepCopyConfiguration
public String deepCopyConfiguration(String configId, String productCode, 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
-
deepCopyConfigurationWithDate
public String deepCopyConfigurationWithDate(String configId, String productCode, String externalConfiguration, boolean force, ProductConfigurationRelatedObjectType targetObjectType) Description copied from interface:ConfigurationDeepCopyHandlerDeep Copies a configuration and re-runs KB determination using the current date.- Specified by:
deepCopyConfigurationWithDatein 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
-
deepCopy
protected String deepCopy(String configId, String productCode, String externalConfiguration, ProductConfigurationRelatedObjectType targetObjectType) -
deepCopy
protected String deepCopy(String configId, String productCode, String externalConfiguration, ProductConfigurationRelatedObjectType targetObjectType, boolean withDate) -
prepareRetrievalOptions
protected ConfigurationRetrievalOptions prepareRetrievalOptions(ProductConfigurationRelatedObjectType targetObjectType) -
prepareRetrievalOptions
protected ConfigurationRetrievalOptions prepareRetrievalOptions(ProductConfigurationRelatedObjectType targetObjectType, boolean withDate) -
getConfigurationService
-
setConfigurationService
-