Class B2BRegistrationEmailContext

java.lang.Object
org.apache.velocity.context.AbstractContext
All Implemented Interfaces:
Serializable, Cloneable, org.apache.velocity.context.Context, org.apache.velocity.context.InternalEventContext
Direct Known Subclasses:
B2BRegistrationApprovedEmailContext, B2BRegistrationRejectedEmailContext

public class B2BRegistrationEmailContext extends AbstractEmailContext<StoreFrontCustomerProcessModel>
Email context used to render B2B registration specific emails
See Also:
  • Constructor Details

    • B2BRegistrationEmailContext

      public B2BRegistrationEmailContext()
  • Method Details

    • getRegistration

      public B2BRegistrationModel getRegistration()
      Returns:
      the registration
    • setRegistration

      public void setRegistration(B2BRegistrationModel registration)
      Parameters:
      registration - the registration to set
    • init

      public void init(StoreFrontCustomerProcessModel businessProcessModel, EmailPageModel emailPageModel)
      Overrides:
      init in class AbstractEmailContext<StoreFrontCustomerProcessModel>
    • getSite

      protected BaseSiteModel getSite(StoreFrontCustomerProcessModel businessProcessModel)
      Specified by:
      getSite in class AbstractEmailContext<StoreFrontCustomerProcessModel>
    • getCustomer

      protected CustomerModel getCustomer(StoreFrontCustomerProcessModel businessProcessModel)
      Specified by:
      getCustomer in class AbstractEmailContext<StoreFrontCustomerProcessModel>
    • getEmailLanguage

      protected LanguageModel getEmailLanguage(StoreFrontCustomerProcessModel businessProcessModel)
      Specified by:
      getEmailLanguage in class AbstractEmailContext<StoreFrontCustomerProcessModel>
    • 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