public class DefaultCMSItemCloningService extends java.lang.Object implements CMSItemCloningService
CMSItemCloningService to deep copy item models.| Constructor and Description |
|---|
DefaultCMSItemCloningService() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<AbstractCMSComponentModel> |
cloneComponent(AbstractCMSComponentModel componentModel)
Deep clones the provided component in the same catalog version.
|
protected java.util.Optional<AbstractCMSComponentModel> |
cloneComponentInCatalogVersion(AbstractCMSComponentModel componentModel,
CatalogVersionModel targetCatalogVersionModel)
Deep clones the provided component in the provided catalog version.
|
void |
cloneContentSlotComponents(ContentSlotModel sourceContentSlotModel,
ContentSlotModel targetContentSlotModel,
CatalogVersionModel targetCatalogVersionModel)
Deeps clones all cloneable cms components for a given content slot excluding non cloneable components
|
protected CMSItemCloneablePredicate |
getCmsItemCloneablePredicate() |
protected CMSItemDeepCloningService |
getCmsItemDeepCloningService() |
protected CMSModelCloningContextFactory |
getCmsModelCloningContextFactory() |
protected CMSPageService |
getCmsPageService() |
void |
setCmsItemCloneablePredicate(CMSItemCloneablePredicate cmsItemCloneablePredicate) |
void |
setCmsItemDeepCloningService(CMSItemDeepCloningService cmsItemDeepCloningService) |
void |
setCmsModelCloningContextFactory(CMSModelCloningContextFactory cmsModelCloningContextFactory) |
void |
setCmsPageService(CMSPageService cmsPageService) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldCloneComponentspublic void cloneContentSlotComponents(ContentSlotModel sourceContentSlotModel, ContentSlotModel targetContentSlotModel, CatalogVersionModel targetCatalogVersionModel)
CMSItemCloningServicecloneContentSlotComponents in interface CMSItemCloningServicesourceContentSlotModel - - the source content slot containing the cms componentstargetContentSlotModel - - the target content slot containing the cloned cms componentstargetCatalogVersionModel - - the catalog versionpublic java.util.Optional<AbstractCMSComponentModel> cloneComponent(AbstractCMSComponentModel componentModel)
CMSItemCloningServicecloneComponent in interface CMSItemCloningServicecomponentModel - - The original component to clone.protected java.util.Optional<AbstractCMSComponentModel> cloneComponentInCatalogVersion(AbstractCMSComponentModel componentModel, CatalogVersionModel targetCatalogVersionModel)
componentModel - - The original component to clone.targetCatalogVersionModel - - The catalog version where to clone the provided component.protected CMSModelCloningContextFactory getCmsModelCloningContextFactory()
public void setCmsModelCloningContextFactory(CMSModelCloningContextFactory cmsModelCloningContextFactory)
protected CMSItemCloneablePredicate getCmsItemCloneablePredicate()
public void setCmsItemCloneablePredicate(CMSItemCloneablePredicate cmsItemCloneablePredicate)
protected CMSItemDeepCloningService getCmsItemDeepCloningService()
public void setCmsItemDeepCloningService(CMSItemDeepCloningService cmsItemDeepCloningService)
protected CMSPageService getCmsPageService()
public void setCmsPageService(CMSPageService cmsPageService)
Copyright © 2018 SAP SE. All Rights Reserved.