Class EmailTemplateServiceImpl
java.lang.Object
org.duracloud.account.db.util.impl.EmailTemplateServiceImpl
- All Implemented Interfaces:
EmailTemplateService
@Component("emailTemplateService")
public class EmailTemplateServiceImpl
extends Object
implements EmailTemplateService
- Author:
- dbernstein
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.duracloud.account.db.model.EmailTemplategetTemplate(Long templateId) Returns the template by idorg.duracloud.account.db.model.EmailTemplategetTemplate(org.duracloud.account.db.model.EmailTemplate.Templates template) Returns the template by enum valuevoidinit()List<org.duracloud.account.db.model.EmailTemplate>list()Lists all the email templatesorg.duracloud.account.db.model.EmailTemplateUpdates the template and returns the updated object.
-
Constructor Details
-
EmailTemplateServiceImpl
public EmailTemplateServiceImpl()
-
-
Method Details
-
init
@PostConstruct public void init() -
getTemplate
public org.duracloud.account.db.model.EmailTemplate getTemplate(org.duracloud.account.db.model.EmailTemplate.Templates template) Description copied from interface:EmailTemplateServiceReturns the template by enum value- Specified by:
getTemplatein interfaceEmailTemplateService- Returns:
-
getTemplate
Description copied from interface:EmailTemplateServiceReturns the template by id- Specified by:
getTemplatein interfaceEmailTemplateService- Returns:
-
list
Description copied from interface:EmailTemplateServiceLists all the email templates- Specified by:
listin interfaceEmailTemplateService- Returns:
-
update
public org.duracloud.account.db.model.EmailTemplate update(Long templateId, String subject, String body) Description copied from interface:EmailTemplateServiceUpdates the template and returns the updated object.- Specified by:
updatein interfaceEmailTemplateService- Returns:
-