public class ComponentCloningStrategy extends java.lang.Object implements CMSCloningStrategy<AbstractCMSComponentModel>
| Constructor and Description |
|---|
ComponentCloningStrategy() |
public AbstractCMSComponentModel clone(AbstractCMSComponentModel sourceComponentModel, java.util.Optional<AbstractCMSComponentModel> template, java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> context) throws CMSItemNotFoundException
CMSCloningStrategyclone in interface CMSCloningStrategy<AbstractCMSComponentModel>sourceComponentModel - the cms item model to be copiedtemplate - (optional) the template of the cloned item that may be augmentedcontext - (optional) this map contains any context specific data required to clone the itemCMSItemNotFoundException - when no CMS item with the given source Uid can be foundprotected CMSItemDeepCloningService getCmsItemDeepCloningService()
public void setCmsItemDeepCloningService(CMSItemDeepCloningService cmsItemDeepCloningService)
protected SessionSearchRestrictionsDisabler getCmsSessionSearchRestrictionsDisabler()
public void setCmsSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler cmsSessionSearchRestrictionsDisabler)
protected CMSModelCloningContextFactory getCmsModelCloningContextFactory()
public void setCmsModelCloningContextFactory(CMSModelCloningContextFactory cmsModelCloningContextFactory)
protected CatalogVersionService getCatalogVersionService()
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
protected CMSItemCloneablePredicate getCmsItemCloneablePredicate()
public void setCmsItemCloneablePredicate(CMSItemCloneablePredicate cmsItemCloneablePredicate)
Copyright © 2018 SAP SE. All Rights Reserved.