clone
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
Clones the CMS item given by the source universal identifier. If a template is provided, it may be augmented,
otherwise a new item may be created.
- Parameters:
cmsItemModel
- the cms item model to be copied
template
- (optional) the template of the cloned item that may be augmented
context
- (optional) this map contains any context specific data required to clone the item
- Returns:
- the cloned CMS item model
- Throws:
CMSItemNotFoundException
- when no CMS item with the given source Uid can be found
java.lang.IllegalArgumentException
- when the a non-empty optional template or context parameter is expected but not given or the