public interface CMSCloningStrategy<T extends CMSItemModel>
| Modifier and Type | Method and Description |
|---|---|
T |
clone(T cmsItemModel,
java.util.Optional<T> template,
java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> context)
Clones the CMS item given by the source universal identifier.
|
T clone(T cmsItemModel, java.util.Optional<T> template, java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> context) throws CMSItemNotFoundException, java.lang.IllegalArgumentException
cmsItemModel - 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 foundjava.lang.IllegalArgumentException - when the a non-empty optional template or context parameter is expected but not given or theCopyright © 2018 SAP SE. All Rights Reserved.