Class DefaultAsCloneStrategy
- java.lang.Object
-
- de.hybris.platform.adaptivesearch.strategies.impl.DefaultAsCloneStrategy
-
- All Implemented Interfaces:
AsCloneStrategy
public class DefaultAsCloneStrategy extends java.lang.Object implements AsCloneStrategy
Default implementation of the clone strategy.
-
-
Constructor Summary
Constructors Constructor Description DefaultAsCloneStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends ItemModel>
Tclone(T objectToClone)Creates a deep copy of the given model.ModelCloningContextgetModelCloningContext()ModelServicegetModelService()voidsetModelCloningContext(ModelCloningContext modelCloningContext)voidsetModelService(ModelService modelService)
-
-
-
Method Detail
-
clone
public <T extends ItemModel> T clone(T objectToClone)
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
public ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getModelCloningContext
public ModelCloningContext getModelCloningContext()
-
setModelCloningContext
public void setModelCloningContext(ModelCloningContext modelCloningContext)
-
-