Class PunchOutEmailService

java.lang.Object
de.hybris.platform.b2b.punchout.services.PunchOutEmailService

public class PunchOutEmailService extends Object
This is the service to handle the logic to send email when punch out credential expired.
  • Constructor Details

    • PunchOutEmailService

      public PunchOutEmailService()
  • Method Details

    • sendEmail

      public String sendEmail(PunchOutCredentialModel model, String emailToAddress)
      Parameters:
      model - Model is used to set to PunchOutEmailContext, so that corresponding expired punch out credential info could be rendered into email.
      emailToAddress - It is the recipient's email address
      Returns:
      the success email sent message ID.
    • createContext

      protected PunchOutEmailContext createContext(PunchOutCredentialModel model)
    • getEmailSubject

      protected String getEmailSubject()
    • getHtmlTemplate

      protected RendererTemplateModel getHtmlTemplate()
    • getRendererService

      protected RendererService getRendererService()
    • setRendererService

      public void setRendererService(RendererService rendererService)
    • getConfigurationService

      protected ConfigurationService getConfigurationService()
    • setConfigurationService

      public void setConfigurationService(ConfigurationService configurationService)