Class DefaultAsCloneStrategy

java.lang.Object
de.hybris.platform.adaptivesearch.strategies.impl.DefaultAsCloneStrategy
All Implemented Interfaces:
AsCloneStrategy

public class DefaultAsCloneStrategy extends Object implements AsCloneStrategy
Default implementation of the clone strategy.
  • Constructor Details

    • DefaultAsCloneStrategy

      public DefaultAsCloneStrategy()
  • Method Details

    • clone

      public <T extends ItemModel> T clone(T objectToClone)
      Description copied from interface: AsCloneStrategy
      Creates 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:
      clone in interface AsCloneStrategy
      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)