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 Modifier and Type Field Description static java.lang.StringCOMPONENT_IDstatic java.lang.StringCOMPONENT_NAMEstatic java.lang.StringCURRENCY_SYMBOLstatic java.lang.StringSERVICE_URL
-
Constructor Summary
Constructors Constructor Description MerchandisingComponentRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.Object>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, getAddonUiExtensionName, getBean, getCmsComponentFolder, getCmsComponentService, getModelService, getRequestContextData, getScopeForVariableName, getTypeCode, getTypeService, getUIExperienceFolder, getUiExperienceService, getUiExperienceViewPrefixMap, getUnknownUiExperiencePrefix, getView, getViewResourceName, renderComponent, setCmsComponentFolder, setCmsComponentService, setModelService, setTypeService, setUiExperienceService, setUiExperienceViewPrefixMap, setUnknownUiExperiencePrefix, unExposeVariables
-
-
-
-
Field Detail
-
COMPONENT_ID
public static final java.lang.String COMPONENT_ID
- See Also:
- Constant Field Values
-
SERVICE_URL
public static final java.lang.String SERVICE_URL
- See Also:
- Constant Field Values
-
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME
- See Also:
- Constant Field Values
-
CURRENCY_SYMBOL
public static final java.lang.String CURRENCY_SYMBOL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVariablesToExpose
protected java.util.Map<java.lang.String,java.lang.Object> getVariablesToExpose(javax.servlet.jsp.PageContext pageContext, C component)- Overrides:
getVariablesToExposein 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
public void setCommerceCommonI18NService(CommerceCommonI18NService commerceCommonI18NService)
Sets theCommerceCommonI18NServicebeing used by the renderer.- Parameters:
commerceCommonI18NService- the service to use.
-
-