Interface CMSModelCloningContextFactory
-
- All Known Implementing Classes:
DefaultCMSModelCloningContextFactory
public interface CMSModelCloningContextFactory
Factory to provide a new instance ofCMSModelCloningContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CMSModelCloningContext
createCloningContextWithCatalogVersionPredicates(CatalogVersionModel targetCatalogVersion)
Creates aCMSModelCloningContext
and appendComponentForCatalogVersionAttributePresetPredicate
andMediaForCatalogVersionAttributePresetPredicate
to the list of preset predicates.
-
-
-
Method Detail
-
createCloningContextWithCatalogVersionPredicates
CMSModelCloningContext createCloningContextWithCatalogVersionPredicates(CatalogVersionModel targetCatalogVersion)
Creates aCMSModelCloningContext
and appendComponentForCatalogVersionAttributePresetPredicate
andMediaForCatalogVersionAttributePresetPredicate
to the list of preset predicates. This ensures that all new cloned component and media models has a the given catalog version.- Parameters:
targetCatalogVersion
- - the catalog version to be set for all new cloned item models- Returns:
- a CMSModelCloningContext
-
-