Class DefaultVendorCMSStrategy
java.lang.Object
de.hybris.platform.marketplaceservices.strategies.impl.DefaultVendorCMSStrategy
- All Implemented Interfaces:
VendorCMSStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ContentSlotModelcreateContentSlotForPage(String vendorCode, CatalogVersionModel catalogVersion, String position, AbstractPageModel page, AbstractCMSComponentModel... component) extract a method to create content slot with its for page and componentsprotected CatalogVersionServiceprotected ConfigurationServicegetContentSlotByPositionAndCatalogVersion(VendorModel vendor, String position, CatalogVersionModel catalogVersion) get the content slot instance from a vendor page by its positionprotected ModelServiceprotected Stringget configuration value by keyprotected VendorCMSPageServiceprotected VendorCMSServiceget the product carousel components in a vendor landing pageA key to create the whole landing page with default content slots and componentsvoidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetConfigurationService(ConfigurationService configurationService) voidsetModelService(ModelService modelService) voidsetVendorCMSPageService(VendorCMSPageService vendorCMSPageService) voidsetVendorCmsService(VendorCMSService vendorCmsService)
-
Constructor Details
-
DefaultVendorCMSStrategy
public DefaultVendorCMSStrategy()
-
-
Method Details
-
prepareLandingPageForVendor
Description copied from interface:VendorCMSStrategyA key to create the whole landing page with default content slots and components- Specified by:
prepareLandingPageForVendorin interfaceVendorCMSStrategy- Parameters:
vendor- the specific vendor- Returns:
- the instance of this page
-
getContentSlotByPositionAndCatalogVersion
public ContentSlotModel getContentSlotByPositionAndCatalogVersion(VendorModel vendor, String position, CatalogVersionModel catalogVersion) Description copied from interface:VendorCMSStrategyget the content slot instance from a vendor page by its position- Specified by:
getContentSlotByPositionAndCatalogVersionin interfaceVendorCMSStrategy- Parameters:
vendor- the specific vendorposition- the positioncatalogVersion- the catalog version the position of this content slot- Returns:
- the instance of this content slot
-
getVendorProductCarouselComponents
Description copied from interface:VendorCMSStrategyget the product carousel components in a vendor landing page- Specified by:
getVendorProductCarouselComponentsin interfaceVendorCMSStrategy- Parameters:
vendor- the specific vendor- Returns:
- list of product carousel components
-
createContentSlotForPage
protected ContentSlotModel createContentSlotForPage(String vendorCode, CatalogVersionModel catalogVersion, String position, AbstractPageModel page, AbstractCMSComponentModel... component) extract a method to create content slot with its for page and components- Parameters:
vendor- the specific vendorcatalogVersion- the catalog versionsection- the position of this slotpage- the pagecomponent- components in the slot
-
getStringConfiguration
get configuration value by key- Parameters:
key- the configuration key- Returns:
- the configuration value
-
getConfigurationService
-
setConfigurationService
-
getCatalogVersionService
-
setCatalogVersionService
-
getVendorCmsService
-
setVendorCmsService
-
getModelService
-
setModelService
-
getVendorCMSPageService
-
setVendorCMSPageService
-