Class DefaultPreviewLoader
- java.lang.Object
-
- de.hybris.platform.cmscockpit.components.liveedit.impl.DefaultPreviewLoader
-
- All Implemented Interfaces:
PreviewLoader
public class DefaultPreviewLoader extends java.lang.Object implements PreviewLoader
-
-
Constructor Summary
Constructors Constructor Description DefaultPreviewLoader()
-
Method Summary
-
-
-
Method Detail
-
loadValues
public void loadValues(PreviewDataModel previewCtx, AbstractPageModel page, java.util.Collection<CatalogVersionModel> catVersions, boolean liveEdit, LanguageModel language, java.lang.String resourcePath)
Description copied from interface:PreviewLoaderFills the supplied preview contextpreviewCtxwith values.- Specified by:
loadValuesin interfacePreviewLoader- Parameters:
previewCtx- preview data model to be filledpage- the pagecatVersions- catalog versionsliveEdit-trueif live edit is active,falseif only preview is enabledlanguage- the languageresourcePath- the resource path
-
loadRestrictionBasedValues
protected boolean loadRestrictionBasedValues(PreviewDataModel previewCtx, AbstractPageModel page) throws CMSItemNotFoundException
Fills the supplied preview contextpreviewCtxwith values related to the page's restrictions.- Parameters:
previewCtx- preview data model to be filledpage- the page- Throws:
CMSItemNotFoundException
-
loadCatalogRestrictionForCatalogPage
protected void loadCatalogRestrictionForCatalogPage(PreviewDataModel previewCtx, CMSCatalogRestrictionModel catalogRestriction)
-
loadCatalogRestrictionForCategoryPage
protected void loadCatalogRestrictionForCategoryPage(PreviewDataModel previewCtx, CMSCatalogRestrictionModel catalogRestriction)
-
loadCatalogRestrictionForProductPage
protected void loadCatalogRestrictionForProductPage(PreviewDataModel previewCtx, CMSCatalogRestrictionModel catalogRestriction)
-
loadCategoryRestrictionForCategoryPage
protected void loadCategoryRestrictionForCategoryPage(PreviewDataModel previewCtx, CMSCategoryRestrictionModel categoryRestriction)
-
loadCategoryRestrictionForProductPage
protected void loadCategoryRestrictionForProductPage(PreviewDataModel previewCtx, CMSCategoryRestrictionModel categoryRestriction)
-
findProductWithinSubCategories
protected java.util.List<ProductModel> findProductWithinSubCategories(java.util.Collection<CategoryModel> categories)
-
loadProductRestrictionForProductPage
protected void loadProductRestrictionForProductPage(PreviewDataModel previewCtx, CMSProductRestrictionModel productRestriction)
-
loadUserRestrictionBaseValues
protected void loadUserRestrictionBaseValues(PreviewDataModel previewCtx, CMSUserRestrictionModel userRestriction)
-
loadUserGroupRestrictionBaseValues
protected void loadUserGroupRestrictionBaseValues(PreviewDataModel previewCtx, CMSUserGroupRestrictionModel userGroupRestriction)
-
loadTimeRestrictionBaseValues
protected void loadTimeRestrictionBaseValues(PreviewDataModel previewCtx, CMSTimeRestrictionModel timeRestriction)
-
loadCommonRestrictionBaseValues
protected boolean loadCommonRestrictionBaseValues(PreviewDataModel previewCtx, AbstractPageModel page)
-
isUserRestrictionIsApplicable
protected <T> boolean isUserRestrictionIsApplicable(java.lang.Class<T> restrictionClazz, java.util.Collection<AbstractRestrictionModel> restrictions)
-
getRestrictionService
protected CMSAdminRestrictionService getRestrictionService()
-
getAdminSiteService
protected CMSAdminSiteService getAdminSiteService()
-
-