public interface EmailTemplateService
Modifier and Type | Method and Description |
---|---|
List<EmailTemplate> |
findActiveTemplatesByType(org.broadleafcommerce.common.notification.service.type.NotificationEventType notificationEventType)
Finds a List of active
Notification for the given NotificationType . |
EmailTemplate |
findEmailTemplateById(Long id) |
EmailTemplate |
findEmailTemplateByPath(String path)
Responsible for finding a
Notification for the given resource path. |
String |
getEmailResourcePath(EmailTemplate emailTemplate)
This method is responsible for generating a template path for a given Notification.
|
String |
getEmailTemplateClasspathPath(String prefix,
EmailTemplate emailTemplate)
This method is responsible for generating a classpath template path for a given Notification.
|
List<EmailTemplate> findActiveTemplatesByType(org.broadleafcommerce.common.notification.service.type.NotificationEventType notificationEventType)
Notification
for the given NotificationType
.notificationEventType
- the typeNotification
EmailTemplate findEmailTemplateById(Long id)
EmailTemplate findEmailTemplateByPath(String path)
Notification
for the given resource path. This path is not stored in the database,
but instead is generated at runtime. This method is responsible for attempting to parse out this template path
and retrieve the correct Notification.path
- the template pathString getEmailResourcePath(EmailTemplate emailTemplate)
emailTemplate
- the NotificationString getEmailTemplateClasspathPath(String prefix, EmailTemplate emailTemplate)
prefix
- emailTemplate
- Copyright © 2020. All rights reserved.