Class CategoryOrProductPageRestorePopulator
java.lang.Object
de.hybris.platform.cmsfacades.cmsitems.populators.CategoryOrProductPageRestorePopulator
public class CategoryOrProductPageRestorePopulator
extends Object
implements Populator<Map<String,Object>,ItemModel>
CategoryOrProductPageRestorePopulator populator for cmsfacades used to replace a product/category page while page
restore with replace set to true.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<AbstractPageModel>getExistingPrimaryPagesByType(String pageType) Returns active primary pages for a given pageType.protected Predicate<AbstractPageModel>protected PageVariationResolverTypeRegistryprotected booleanisPrimaryPage(Map<String, Object> source) protected booleanpageBeReplacedWithOnlyOnePrimaryForType(Map<String, Object> source, ItemModel itemModel) Checks if it a page restore operation with replace enabled and type that can have only one primary page.voidPopulate the target instance with values from the source instance.protected booleanprimaryPageAlreadyExists(String uid, List<AbstractPageModel> existingPages) voidsetPageCanOnlyHaveOnePrimaryPredicate(Predicate<AbstractPageModel> pageCanOnlyHaveOnePrimaryPredicate) voidsetPageVariationResolverTypeRegistry(PageVariationResolverTypeRegistry pageVariationResolverTypeRegistry)
-
Constructor Details
-
CategoryOrProductPageRestorePopulator
public CategoryOrProductPageRestorePopulator()
-
-
Method Details
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance. -
getExistingPrimaryPagesByType
Returns active primary pages for a given pageType. -
pageBeReplacedWithOnlyOnePrimaryForType
protected boolean pageBeReplacedWithOnlyOnePrimaryForType(Map<String, Object> source, ItemModel itemModel) Checks if it a page restore operation with replace enabled and type that can have only one primary page. -
isPrimaryPage
-
-
getPageVariationResolverTypeRegistry
-
setPageVariationResolverTypeRegistry
public void setPageVariationResolverTypeRegistry(PageVariationResolverTypeRegistry pageVariationResolverTypeRegistry) -
getPageCanOnlyHaveOnePrimaryPredicate
-
setPageCanOnlyHaveOnePrimaryPredicate
public void setPageCanOnlyHaveOnePrimaryPredicate(Predicate<AbstractPageModel> pageCanOnlyHaveOnePrimaryPredicate)
-