Class OrderNotificationEmailContext

  • All Implemented Interfaces:
    java.lang.Cloneable, org.apache.velocity.context.Context, org.apache.velocity.context.InternalEventContext

    public class OrderNotificationEmailContext
    extends ChineseAbstractEmailContext<OrderProcessModel>
    Velocity context for a order notification email.
    • Constructor Detail

      • OrderNotificationEmailContext

        public OrderNotificationEmailContext()
    • Method Detail

      • getPaymentMode

        public java.lang.String getPaymentMode()
      • getDeliveryAddressNameWithTitle

        public java.lang.String getDeliveryAddressNameWithTitle()
      • setBaseSiteService

        public void setBaseSiteService​(BaseSiteService baseSiteService)
      • setCommerceCategoryService

        public void setCommerceCategoryService​(CommerceCategoryService commerceCategoryService)
      • 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)
      • updateDevliverInfo

        protected void updateDevliverInfo​(OrderProcessModel orderProcessModel)
      • updateBaseUrl

        protected void updateBaseUrl​(OrderModel orderModel,
                                     java.lang.String isoCode)
      • resolveInternal

        protected java.lang.String resolveInternal​(ProductModel source)
      • buildPathString

        protected java.lang.String buildPathString​(java.util.List<CategoryModel> path)
      • urlSafe

        protected java.lang.String urlSafe​(java.lang.String text)
      • 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:
        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