Class KualiFeedbackServiceImpl

java.lang.Object
org.kuali.rice.krad.service.impl.KualiFeedbackServiceImpl
All Implemented Interfaces:
KualiFeedbackService
Direct Known Subclasses:
KualiExceptionIncidentServiceImpl

public class KualiFeedbackServiceImpl extends Object implements KualiFeedbackService
This class implements the KualiFeedbackService and contains logic to send a feedback email to the feedback email list with information from users.
  • Constructor Details

    • KualiFeedbackServiceImpl

      public KualiFeedbackServiceImpl()
  • Method Details

    • emailReport

      public void emailReport(String subject, String message) throws Exception
      This mails the report using the mail service from the mail template.
      Specified by:
      emailReport in interface KualiFeedbackService
      Throws:
      Exception
      See Also:
    • sendFeedback

      public void sendFeedback(String documentId, String componentName, String description) throws Exception
      Specified by:
      sendFeedback in interface KualiFeedbackService
      Throws:
      Exception
    • createMailMessage

      protected org.kuali.rice.core.api.mail.MailMessage createMailMessage(String subject, String message) throws Exception
      Creates an instance of MailMessage from the inputs using the given template.
      Parameters:
      subject - the subject line text
      message - the body of the email message
      Returns:
      MailMessage
      Throws:
      IllegalStateException - if the REPORT_MAIL_LIST is not set or messageTemplate does not have ToAddresses already set.
      Exception
    • getFromAddress

      protected String getFromAddress()
    • getToAddresses

      protected Set<String> getToAddresses()
    • getToAddressesPropertyName

      protected String getToAddressesPropertyName()
    • getCcAddresses

      protected Set<String> getCcAddresses()
    • getBccAddresses

      protected Set<String> getBccAddresses()
    • getMailer

      public org.kuali.rice.core.api.mail.Mailer getMailer()
    • setMailer

      public final void setMailer(org.kuali.rice.core.api.mail.Mailer mailer)
    • getMessageTemplate

      public org.kuali.rice.core.api.mail.MailMessage getMessageTemplate()
    • setMessageTemplate

      public void setMessageTemplate(org.kuali.rice.core.api.mail.MailMessage messageTemplate)