Class MerchandisingComponentRenderer<C extends AbstractCMSComponentModel>
java.lang.Object
de.hybris.platform.addonsupport.renderer.impl.DefaultAddOnCMSComponentRenderer<C>
com.hybris.merchandising.addon.component.renderer.MerchandisingComponentRenderer<C>
- Type Parameters:
C- a Component which extendsAbstractCMSComponentModel.
- All Implemented Interfaces:
CMSComponentRenderer<C>
public class MerchandisingComponentRenderer<C extends AbstractCMSComponentModel>
extends DefaultAddOnCMSComponentRenderer<C>
MerchandisingComponentRenderer is a custom component renderer for Merch v2 CMS components.
This is intended to allow us to expose additional values to the page if required (e.g.
the component ID).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetAddonUiExtensionName(C component) getVariablesToExpose(javax.servlet.jsp.PageContext pageContext, C component) voidsetCommerceCommonI18NService(CommerceCommonI18NService commerceCommonI18NService) Sets theCommerceCommonI18NServicebeing used by the renderer.voidsetConsumedDestinationLocatorStrategy(ConsumedDestinationLocatorStrategy consumedDestinationLocatorStrategy) Sets the injectedConsumedDestinationLocatorStrategy.voidsetProductDirectoryConfigService(MerchProductDirectoryConfigService productDirectoryConfigService) Sets theMerchProductDirectoryConfigServicebeing used by the renderer.Methods inherited from class de.hybris.platform.addonsupport.renderer.impl.DefaultAddOnCMSComponentRenderer
exposeVariables, getBean, getCmsComponentFolder, getCmsComponentService, getModelService, getRequestContextData, getScopeForVariableName, getTypeCode, getTypeService, getUIExperienceFolder, getUiExperienceService, getUiExperienceViewPrefixMap, getUnknownUiExperiencePrefix, getView, getViewResourceName, renderComponent, setCmsComponentFolder, setCmsComponentService, setModelService, setTypeService, setUiExperienceService, setUiExperienceViewPrefixMap, setUnknownUiExperiencePrefix, unExposeVariables
-
Field Details
-
COMPONENT_ID
- See Also:
-
SERVICE_URL
- See Also:
-
COMPONENT_NAME
- See Also:
-
CURRENCY_SYMBOL
- See Also:
-
-
Constructor Details
-
MerchandisingComponentRenderer
public MerchandisingComponentRenderer()
-
-
Method Details
-
getVariablesToExpose
protected Map<String,Object> getVariablesToExpose(javax.servlet.jsp.PageContext pageContext, C component) - Overrides:
getVariablesToExposein classDefaultAddOnCMSComponentRenderer<C extends AbstractCMSComponentModel>
-
getAddonUiExtensionName
- Overrides:
getAddonUiExtensionNamein classDefaultAddOnCMSComponentRenderer<C extends AbstractCMSComponentModel>
-
setConsumedDestinationLocatorStrategy
public void setConsumedDestinationLocatorStrategy(ConsumedDestinationLocatorStrategy consumedDestinationLocatorStrategy) Sets the injectedConsumedDestinationLocatorStrategy.- Parameters:
consumedDestinationLocatorStrategy- the locator strategy to inject.
-
setProductDirectoryConfigService
public void setProductDirectoryConfigService(MerchProductDirectoryConfigService productDirectoryConfigService) Sets theMerchProductDirectoryConfigServicebeing used by the renderer.- Parameters:
productDirectoryConfigService- the service to use.
-
setCommerceCommonI18NService
Sets theCommerceCommonI18NServicebeing used by the renderer.- Parameters:
commerceCommonI18NService- the service to use.
-