Class BackInStockNotificationEmailContext
- java.lang.Object
-
- org.apache.velocity.context.AbstractContext
-
- org.apache.velocity.VelocityContext
-
- de.hybris.platform.acceleratorservices.document.context.AbstractHybrisVelocityContext
-
- de.hybris.platform.acceleratorservices.process.email.context.AbstractEmailContext<StockNotificationProcessModel>
-
- de.hybris.platform.stocknotificationfacades.process.email.context.BackInStockNotificationEmailContext
-
- All Implemented Interfaces:
java.lang.Cloneable,org.apache.velocity.context.Context,org.apache.velocity.context.InternalEventContext
public class BackInStockNotificationEmailContext extends AbstractEmailContext<StockNotificationProcessModel>
Context for sending Back In Stock Notification Email
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.acceleratorservices.process.email.context.AbstractEmailContext
DATE_TOOL, DISPLAY_NAME, EMAIL, EMAIL_LANGUAGE, FROM_DISPLAY_NAME, FROM_EMAIL, TITLE
-
Fields inherited from class de.hybris.platform.acceleratorservices.document.context.AbstractHybrisVelocityContext
BASE_SITE, BASE_THEME_URL, BASE_URL, MEDIA_BASE_URL, MEDIA_SECURE_BASE_URL, SECURE_BASE_URL, THEME
-
-
Constructor Summary
Constructors Constructor Description BackInStockNotificationEmailContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.velocity.app.event.EventCartridgeattachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0)java.util.List<ProductData>findProductRelatedToProduct(StockNotificationProcessModel stockNotificationProcessModel)Find the reference products for the product being interested by customerCommerceProductReferenceService<ProductReferenceTypeEnum,ProductModel>getCommerceProductReferenceService()intgetCurrentMacroCallDepth()java.lang.StringgetCurrentMacroName()org.apache.velocity.runtime.resource.ResourcegetCurrentResource()java.lang.StringgetCurrentTemplateName()protected CustomerModelgetCustomer(StockNotificationProcessModel stockNotificationProcessModel)protected LanguageModelgetEmailLanguage(StockNotificationProcessModel stockNotificationProcessModel)org.apache.velocity.app.event.EventCartridgegetEventCartridge()java.util.ListgetMacroLibraries()java.lang.Object[]getMacroNameStack()Converter<ProductModel,ProductData>getProductConverter()ProductDatagetProductData()protected Converter<ProductModel,ProductData>getProductPriceAndStockConverter()java.util.List<ProductData>getProductReferences()protected BaseSiteModelgetSite(StockNotificationProcessModel stockNotificationProcessModel)java.lang.Object[]getTemplateNameStack()org.apache.velocity.util.introspection.IntrospectionCacheDataicacheGet(java.lang.Object arg0)voidicachePut(java.lang.Object arg0, org.apache.velocity.util.introspection.IntrospectionCacheData arg1)voidinit(StockNotificationProcessModel businessProcessModel, EmailPageModel emailPageModel)voidpopCurrentMacroName()voidpopCurrentTemplateName()voidpushCurrentMacroName(java.lang.String arg0)voidpushCurrentTemplateName(java.lang.String arg0)voidsetCommerceProductReferenceService(CommerceProductReferenceService<ProductReferenceTypeEnum,ProductModel> commerceProductReferenceService)voidsetCurrentResource(org.apache.velocity.runtime.resource.Resource arg0)protected voidsetEmailLocale(StockNotificationProcessModel businessProcessModel)voidsetMacroLibraries(java.util.List arg0)voidsetProductConverter(Converter<ProductModel,ProductData> productConverter)voidsetProductPriceAndStockConverter(Converter<ProductModel,ProductData> productPriceAndStockConverter)protected voidupdateBaseUrl(StockNotificationProcessModel businessProcessModel, java.util.Locale emailLocale)protected voidupdateProductName(StockNotificationProcessModel businessProcessModel, java.util.Locale emailLocale)protected voidupdateReferenceProductName(ProductModel product, ProductData productData, java.util.Locale emailLocale)protected voidupdateTitle(StockNotificationProcessModel businessProcessModel, java.util.Locale emailLocale)-
Methods inherited from class de.hybris.platform.acceleratorservices.process.email.context.AbstractEmailContext
getConfigurationService, getCustomerEmailResolutionService, getDisplayName, getEmail, getEmailLanguage, getFromDisplayName, getFromEmail, getTitle, getToDisplayName, getToEmail, setConfigurationService, setCustomerEmailResolutionService
-
Methods inherited from class de.hybris.platform.acceleratorservices.document.context.AbstractHybrisVelocityContext
getBaseSite, getBaseThemeUrl, getBaseUrl, getCmsSlotContents, getMediaBaseUrl, getMediaSecureBaseUrl, getMessage, getMessages, getSecureBaseUrl, getSiteBaseUrlResolutionService, getTheme, getUrlEncoderService, getUrlEncodingAttributes, init, setBaseSite, setCmsSlotContents, setMessages, setSiteBaseUrlResolutionService, setUrlEncoderService, setUrlEncodingAttributes
-
Methods inherited from class org.apache.velocity.VelocityContext
clone, internalContainsKey, internalGet, internalGetKeys, internalPut, internalRemove
-
-
-
-
Method Detail
-
init
public void init(StockNotificationProcessModel businessProcessModel, EmailPageModel emailPageModel)
- Overrides:
initin classAbstractEmailContext<StockNotificationProcessModel>
-
setEmailLocale
protected void setEmailLocale(StockNotificationProcessModel businessProcessModel)
-
updateReferenceProductName
protected void updateReferenceProductName(ProductModel product, ProductData productData, java.util.Locale emailLocale)
-
updateProductName
protected void updateProductName(StockNotificationProcessModel businessProcessModel, java.util.Locale emailLocale)
-
updateTitle
protected void updateTitle(StockNotificationProcessModel businessProcessModel, java.util.Locale emailLocale)
-
updateBaseUrl
protected void updateBaseUrl(StockNotificationProcessModel businessProcessModel, java.util.Locale emailLocale)
-
getSite
protected BaseSiteModel getSite(StockNotificationProcessModel stockNotificationProcessModel)
- Specified by:
getSitein classAbstractEmailContext<StockNotificationProcessModel>
-
getCustomer
protected CustomerModel getCustomer(StockNotificationProcessModel stockNotificationProcessModel)
- Specified by:
getCustomerin classAbstractEmailContext<StockNotificationProcessModel>
-
getEmailLanguage
protected LanguageModel getEmailLanguage(StockNotificationProcessModel stockNotificationProcessModel)
- Specified by:
getEmailLanguagein classAbstractEmailContext<StockNotificationProcessModel>
-
getProductData
public ProductData getProductData()
-
findProductRelatedToProduct
public java.util.List<ProductData> findProductRelatedToProduct(StockNotificationProcessModel stockNotificationProcessModel)
Find the reference products for the product being interested by customer- Parameters:
stockNotificationProcessModel- buisness model contains the interested product- Returns:
- Return a list of product data
-
getProductConverter
public Converter<ProductModel,ProductData> getProductConverter()
-
setProductConverter
public void setProductConverter(Converter<ProductModel,ProductData> productConverter)
-
getProductReferences
public java.util.List<ProductData> getProductReferences()
-
getCommerceProductReferenceService
public CommerceProductReferenceService<ProductReferenceTypeEnum,ProductModel> getCommerceProductReferenceService()
-
setCommerceProductReferenceService
public void setCommerceProductReferenceService(CommerceProductReferenceService<ProductReferenceTypeEnum,ProductModel> commerceProductReferenceService)
-
getProductPriceAndStockConverter
protected Converter<ProductModel,ProductData> getProductPriceAndStockConverter()
-
setProductPriceAndStockConverter
public void setProductPriceAndStockConverter(Converter<ProductModel,ProductData> productPriceAndStockConverter)
-
pushCurrentTemplateName
public void pushCurrentTemplateName(java.lang.String arg0)
-
popCurrentTemplateName
public void popCurrentTemplateName()
-
getCurrentTemplateName
public java.lang.String getCurrentTemplateName()
-
getTemplateNameStack
public java.lang.Object[] getTemplateNameStack()
-
pushCurrentMacroName
public void pushCurrentMacroName(java.lang.String arg0)
-
popCurrentMacroName
public void popCurrentMacroName()
-
getCurrentMacroName
public java.lang.String getCurrentMacroName()
-
getCurrentMacroCallDepth
public int getCurrentMacroCallDepth()
-
getMacroNameStack
public java.lang.Object[] getMacroNameStack()
-
icacheGet
public org.apache.velocity.util.introspection.IntrospectionCacheData icacheGet(java.lang.Object arg0)
-
icachePut
public void icachePut(java.lang.Object arg0, org.apache.velocity.util.introspection.IntrospectionCacheData arg1)
-
setCurrentResource
public void setCurrentResource(org.apache.velocity.runtime.resource.Resource arg0)
-
getCurrentResource
public org.apache.velocity.runtime.resource.Resource getCurrentResource()
-
setMacroLibraries
public void setMacroLibraries(java.util.List arg0)
-
getMacroLibraries
public java.util.List getMacroLibraries()
-
attachEventCartridge
public org.apache.velocity.app.event.EventCartridge attachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0)
- Specified by:
attachEventCartridgein interfaceorg.apache.velocity.context.InternalEventContext
-
getEventCartridge
public org.apache.velocity.app.event.EventCartridge getEventCartridge()
- Specified by:
getEventCartridgein interfaceorg.apache.velocity.context.InternalEventContext
-
-