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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.duracloud.account.db.model.EmailTemplate
    getTemplate(Long templateId)
    Returns the template by id
    org.duracloud.account.db.model.EmailTemplate
    getTemplate(org.duracloud.account.db.model.EmailTemplate.Templates template)
    Returns the template by enum value
    void
     
    List<org.duracloud.account.db.model.EmailTemplate>
    Lists all the email templates
    org.duracloud.account.db.model.EmailTemplate
    update(Long templateId, String subject, String body)
    Updates the template and returns the updated object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: EmailTemplateService
      Returns the template by enum value
      Specified by:
      getTemplate in interface EmailTemplateService
      Returns:
    • getTemplate

      public org.duracloud.account.db.model.EmailTemplate getTemplate(Long templateId)
      Description copied from interface: EmailTemplateService
      Returns the template by id
      Specified by:
      getTemplate in interface EmailTemplateService
      Returns:
    • list

      public List<org.duracloud.account.db.model.EmailTemplate> list()
      Description copied from interface: EmailTemplateService
      Lists all the email templates
      Specified by:
      list in interface EmailTemplateService
      Returns:
    • update

      public org.duracloud.account.db.model.EmailTemplate update(Long templateId, String subject, String body)
      Description copied from interface: EmailTemplateService
      Updates the template and returns the updated object.
      Specified by:
      update in interface EmailTemplateService
      Returns: