Class OrderNotificationEmailContext

All Implemented Interfaces:
Serializable, Cloneable, org.apache.velocity.context.Context, org.apache.velocity.context.InternalEventContext

public class OrderNotificationEmailContext extends ChineseAbstractEmailContext<OrderProcessModel>
Velocity context for a order notification email.
See Also:
  • Constructor Details

    • OrderNotificationEmailContext

      public OrderNotificationEmailContext()
  • Method Details

    • getPaymentMode

      public String getPaymentMode()
    • getDeliveryAddressNameWithTitle

      public String getDeliveryAddressNameWithTitle()
    • getBaseSiteService

      protected BaseSiteService getBaseSiteService()
    • setBaseSiteService

      public void setBaseSiteService(BaseSiteService baseSiteService)
    • getCommerceCategoryService

      protected CommerceCategoryService getCommerceCategoryService()
    • setCommerceCategoryService

      public void setCommerceCategoryService(CommerceCategoryService commerceCategoryService)
    • init

      public void init(OrderProcessModel orderProcessModel, EmailPageModel emailPageModel)
      Overrides:
      init in class ChineseAbstractEmailContext<OrderProcessModel>
    • setDeliveryAddressNameWithTitle

      public void setDeliveryAddressNameWithTitle()
      Set the nameWithTitle field in order confirmation email context
    • updateDeliveryAddress

      protected void updateDeliveryAddress(OrderModel orderModel)
    • updateProductUrlAndName

      protected void updateProductUrlAndName(OrderModel orderModel)
    • updateGroupData

      protected void updateGroupData(OrderModel orderModel, List<? extends OrderEntryGroupData> groupDataList)
    • updateDevliverInfo

      protected void updateDevliverInfo(OrderProcessModel orderProcessModel)
    • updateBaseUrl

      protected void updateBaseUrl(OrderModel orderModel, String isoCode)
    • getSite

      protected BaseSiteModel getSite(OrderProcessModel orderProcessModel)
      Specified by:
      getSite in class AbstractEmailContext<OrderProcessModel>
    • getCustomer

      protected CustomerModel getCustomer(OrderProcessModel orderProcessModel)
      Specified by:
      getCustomer in class AbstractEmailContext<OrderProcessModel>
    • getOrderConverter

      protected Converter<OrderModel,OrderData> getOrderConverter()
    • setOrderConverter

      public void setOrderConverter(Converter<OrderModel,OrderData> orderConverter)
    • getOrder

      public OrderData getOrder()
    • resolveInternal

      protected String resolveInternal(ProductModel source)
    • getCategoryPath

      protected List<CategoryModel> getCategoryPath(ProductModel product)
    • getPrimaryCategoryForProduct

      protected CategoryModel getPrimaryCategoryForProduct(ProductModel product)
    • getCategoryPath

      protected List<CategoryModel> getCategoryPath(CategoryModel category)
    • buildPathString

      protected String buildPathString(List<CategoryModel> path)
    • urlSafe

      protected String urlSafe(String text)
    • pushCurrentTemplateName

      public void pushCurrentTemplateName(String arg0)
    • popCurrentTemplateName

      public void popCurrentTemplateName()
    • getCurrentTemplateName

      public String getCurrentTemplateName()
    • getTemplateNameStack

      public String[] getTemplateNameStack()
    • pushCurrentMacroName

      public void pushCurrentMacroName(String arg0)
    • popCurrentMacroName

      public void popCurrentMacroName()
    • getCurrentMacroName

      public String getCurrentMacroName()
    • getCurrentMacroCallDepth

      public int getCurrentMacroCallDepth()
    • getMacroNameStack

      public String[] getMacroNameStack()
    • icacheGet

      public org.apache.velocity.util.introspection.IntrospectionCacheData icacheGet(Object arg0)
    • icachePut

      public void icachePut(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(List<org.apache.velocity.Template> arg0)
    • getMacroLibraries

      public List<org.apache.velocity.Template> getMacroLibraries()
    • attachEventCartridge

      public org.apache.velocity.app.event.EventCartridge attachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0)
      Specified by:
      attachEventCartridge in interface org.apache.velocity.context.InternalEventContext
    • getEventCartridge

      public org.apache.velocity.app.event.EventCartridge getEventCartridge()
      Specified by:
      getEventCartridge in interface org.apache.velocity.context.InternalEventContext