Class CMSItemModelCloneCreator

java.lang.Object
de.hybris.platform.servicelayer.internal.model.impl.ItemModelCloneCreator
de.hybris.platform.cms2.cloning.service.impl.CMSItemModelCloneCreator

public class CMSItemModelCloneCreator extends ItemModelCloneCreator
This class creates a deep copy of the given original model by creating a new model instance of the same type, reading all attributes values and stores them into the new instance.

The only exception are part-of attribute values which consists of other models - these are cloned themselves and then used as attribute value in the new model instance.

By providing a CMSCopyContext the caller may even add some preset values or define which types are being used when creating copied of part-of models.

Note: CMSModelCloningContext extends the ModelCloningContext to use a CMSCopyContext instead of the original ItemModelCloneCreator.CopyContext.