Class DefaultSmartEditEmailComponentRenderingService
java.lang.Object
de.hybris.platform.smarteditaddon.service.impl.DefaultSmartEditEmailComponentRenderingService
- All Implemented Interfaces:
SmartEditEmailComponentRenderingService
public class DefaultSmartEditEmailComponentRenderingService
extends Object
implements SmartEditEmailComponentRenderingService
Implementation of
SmartEditEmailComponentRenderingService code of this class was mostly based on
AbstractHybrisVelocityContextFactory-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BaseSiteServiceprotected CMSComponentServiceprotected ModelServiceprotected RendererServiceprotected RendererTemplateDaoprotected SiteBaseUrlResolutionServiceprotected TypeServiceprotected voidprocessProperties(AbstractCMSComponentModel component, Map<String, Object> componentContext) Populate a componentContext with it's editor properties SeeCMSComponentServicerenderComponent(AbstractCMSComponentModel component) Renders given CmsComponent for email template purposesprotected StringrenderTemplate(AbstractCMSComponentModel component, RendererTemplateModel renderTemplate, BaseSiteModel site) Render the given component template with data from the given componentvoidsetBaseSiteService(BaseSiteService baseSiteService) voidsetCmsComponentService(CMSComponentService cmsComponentService) voidsetModelService(ModelService modelService) voidsetRendererService(RendererService rendererService) voidsetRendererTemplateDao(RendererTemplateDao rendererTemplateDao) voidsetSiteBaseUrlResolutionService(SiteBaseUrlResolutionService siteBaseUrlResolutionService) voidsetTypeService(TypeService typeService)
-
Constructor Details
-
DefaultSmartEditEmailComponentRenderingService
public DefaultSmartEditEmailComponentRenderingService()
-
-
Method Details
-
renderComponent
Description copied from interface:SmartEditEmailComponentRenderingServiceRenders given CmsComponent for email template purposes- Specified by:
renderComponentin interfaceSmartEditEmailComponentRenderingService- Parameters:
component- to render- Returns:
- html string
-
renderTemplate
protected String renderTemplate(AbstractCMSComponentModel component, RendererTemplateModel renderTemplate, BaseSiteModel site) Render the given component template with data from the given component- Parameters:
component- A component contextrenderTemplate- A template to be renderedsite- The BaseSite context- Returns:
- The rendered html string
-
processProperties
protected void processProperties(AbstractCMSComponentModel component, Map<String, Object> componentContext) Populate a componentContext with it's editor properties SeeCMSComponentService- Parameters:
component- A cms componentcomponentContext- A map to populate with the editor properties
-
getRendererService
-
setRendererService
-
getBaseSiteService
-
setBaseSiteService
-
getCmsComponentService
-
setCmsComponentService
-
getModelService
-
setModelService
-
getRendererTemplateDao
-
setRendererTemplateDao
-
getTypeService
-
setTypeService
-
getSiteBaseUrlResolutionService
-
setSiteBaseUrlResolutionService
public void setSiteBaseUrlResolutionService(SiteBaseUrlResolutionService siteBaseUrlResolutionService)
-