public interface CMSItemDeepCloningService
CMSModelCloningContext to the
CMSItemModelCloneCreator.
Note: CMSModelCloningContext and CMSItemModelCloneCreator respectively extends the
ModelCloningContext and
ItemModelCloneCreator to override some platform
behaviour.
| Modifier and Type | Method and Description |
|---|---|
ItemModel |
deepCloneComponent(ItemModel srcComponent,
ModelCloningContext cloningContext)
Creates a clone of the given component and deep copies all the component's attributes.
|
java.lang.String |
generateCloneComponentName(java.lang.String originalComponentName)
Creates a new name to be used on a cloned component to avoid clashing with the original one.
|
java.lang.String |
generateCloneItemUid()
Creates a uid consisting of the prefix
clone_ and a generated number. |
ItemModel deepCloneComponent(ItemModel srcComponent, ModelCloningContext cloningContext)
srcComponent - - the cms component to be clonedcloningContext - - the cloning contextjava.lang.String generateCloneItemUid()
clone_ and a generated number.java.lang.String generateCloneComponentName(java.lang.String originalComponentName)
originalComponentName - - the original name to use as a base for the clone name.Copyright © 2018 SAP SE. All Rights Reserved.