Interface CMSModelCloningContextFactory
- All Known Implementing Classes:
DefaultCMSModelCloningContextFactory
public interface CMSModelCloningContextFactory
Factory to provide a new instance of
CMSModelCloningContext-
Method Summary
Modifier and TypeMethodDescriptioncreateCloningContextWithCatalogVersionPredicates(CatalogVersionModel targetCatalogVersion) Creates aCMSModelCloningContextand appends additionalAttributePresetHandlerhandlers to the list of preset handlers.
-
Method Details
-
createCloningContextWithCatalogVersionPredicates
CMSModelCloningContext createCloningContextWithCatalogVersionPredicates(CatalogVersionModel targetCatalogVersion) Creates aCMSModelCloningContextand appends additionalAttributePresetHandlerhandlers to the list of preset handlers. Each new handler gets a catalog version as an attribute which ensures that all new cloned component and media models has the given catalog version.- Parameters:
targetCatalogVersion- - the catalog version to be set for all new cloned item models- Returns:
- a CMSModelCloningContext
-