Class DefaultAsCloneStrategy
java.lang.Object
de.hybris.platform.adaptivesearch.strategies.impl.DefaultAsCloneStrategy
- All Implemented Interfaces:
AsCloneStrategy
Default implementation of the clone strategy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends ItemModel>
Tclone(T objectToClone) Creates a deep copy of the given model.voidsetModelCloningContext(ModelCloningContext modelCloningContext) voidsetModelService(ModelService modelService)
-
Constructor Details
-
DefaultAsCloneStrategy
public DefaultAsCloneStrategy()
-
-
Method Details
-
clone
Description copied from interface:AsCloneStrategyCreates a deep copy of the given model. The resulting object is not persisted yet in order to allow modifications like unique key adjustments etc.- Specified by:
clonein interfaceAsCloneStrategy- Parameters:
objectToClone- - the original model- Returns:
- the deep copy of the model
-
getModelService
-
setModelService
-
getModelCloningContext
-
setModelCloningContext
-