public class ContentSlotCloningStrategy extends java.lang.Object implements CMSCloningStrategy<ContentSlotModel>
| Constructor and Description |
|---|
ContentSlotCloningStrategy() |
public ContentSlotModel clone(ContentSlotModel sourceContentSlotModel, java.util.Optional<ContentSlotModel> template, java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> context) throws CMSItemNotFoundException
CMSCloningStrategyclone in interface CMSCloningStrategy<ContentSlotModel>sourceContentSlotModel - 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 void createContentSlotForPageRelation(CatalogVersionModel catalogVersionModel, java.lang.String position, AbstractPageModel pageModel, ContentSlotModel contentSlotModel)
catalogVersionModel - the catalog version of the ContentSlotForPageModelposition - the position of the content slot with respect to other slots on the page. Same as the source content slot.pageModel - the page where the content slot will be associated to. Same as the source content slot.contentSlotModel - the cloned content slotprotected SessionSearchRestrictionsDisabler getCmsSessionSearchRestrictionsDisabler()
public void setCmsSessionSearchRestrictionsDisabler(SessionSearchRestrictionsDisabler cmsSessionSearchRestrictionsDisabler)
protected CatalogVersionService getCatalogVersionService()
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
protected CMSItemCloningService getCmsItemCloningService()
public void setCmsItemCloningService(CMSItemCloningService cmsItemCloningService)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected CMSAdminContentSlotService getCmsAdminContentSlotService()
public void setCmsAdminContentSlotService(CMSAdminContentSlotService cmsAdminContentSlotService)
Copyright © 2018 SAP SE. All Rights Reserved.