Class DefaultVendorCMSStrategy
- java.lang.Object
-
- de.hybris.platform.marketplaceservices.strategies.impl.DefaultVendorCMSStrategy
-
- All Implemented Interfaces:
VendorCMSStrategy
public class DefaultVendorCMSStrategy extends java.lang.Object implements VendorCMSStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultVendorCMSStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ContentSlotModelcreateContentSlotForPage(java.lang.String vendorCode, CatalogVersionModel catalogVersion, java.lang.String position, AbstractPageModel page, AbstractCMSComponentModel... component)extract a method to create content slot with its for page and componentsprotected CatalogVersionServicegetCatalogVersionService()protected ConfigurationServicegetConfigurationService()ContentSlotModelgetContentSlotByPositionAndCatalogVersion(VendorModel vendor, java.lang.String position, CatalogVersionModel catalogVersion)get the content slot instance from a vendor page by its positionprotected ModelServicegetModelService()protected java.lang.StringgetStringConfiguration(java.lang.String key)get configuration value by keyprotected VendorCMSPageServicegetVendorCMSPageService()protected VendorCMSServicegetVendorCmsService()java.util.List<AbstractCMSComponentModel>getVendorProductCarouselComponents(VendorModel vendor)get the product carousel components in a vendor landing pageAbstractPageModelprepareLandingPageForVendor(VendorModel vendor)A 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)
-
-
-
Method Detail
-
prepareLandingPageForVendor
public AbstractPageModel prepareLandingPageForVendor(VendorModel vendor)
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, java.lang.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
public java.util.List<AbstractCMSComponentModel> getVendorProductCarouselComponents(VendorModel vendor)
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(java.lang.String vendorCode, CatalogVersionModel catalogVersion, java.lang.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
protected java.lang.String getStringConfiguration(java.lang.String key)
get configuration value by key- Parameters:
key- the configuration key- Returns:
- the configuration value
-
getConfigurationService
protected ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
getCatalogVersionService
protected CatalogVersionService getCatalogVersionService()
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
getVendorCmsService
protected VendorCMSService getVendorCmsService()
-
setVendorCmsService
public void setVendorCmsService(VendorCMSService vendorCmsService)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getVendorCMSPageService
protected VendorCMSPageService getVendorCMSPageService()
-
setVendorCMSPageService
public void setVendorCMSPageService(VendorCMSPageService vendorCMSPageService)
-
-