public interface CMSItemCloningService
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<AbstractCMSComponentModel> |
cloneComponent(AbstractCMSComponentModel componentModel)
Deep clones the provided component in the same 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
|
default boolean |
shouldCloneComponents(java.util.Map<java.lang.String,java.lang.Object> context)
Determine if components should be cloned or not by validating the value associated to the key
Cms2Constants.SHOULD_CLONE_COMPONENTS_CONTEXT_KEY in the provided context Map. |
void cloneContentSlotComponents(ContentSlotModel sourceContentSlotModel, ContentSlotModel targetContentSlotModel, CatalogVersionModel targetCatalogVersionModel)
sourceContentSlotModel - - the source content slot containing the cms componentstargetContentSlotModel - - the target content slot containing the cloned cms componentstargetCatalogVersionModel - - the catalog versionjava.util.Optional<AbstractCMSComponentModel> cloneComponent(AbstractCMSComponentModel componentModel)
componentModel - - The original component to clone.default boolean shouldCloneComponents(java.util.Map<java.lang.String,java.lang.Object> context)
Cms2Constants.SHOULD_CLONE_COMPONENTS_CONTEXT_KEY in the provided context Map.context - the map containing any data specific to cloning a pageCopyright © 2018 SAP SE. All Rights Reserved.