Package org.kuali.rice.krad.service.impl
Class KualiFeedbackServiceImpl
java.lang.Object
org.kuali.rice.krad.service.impl.KualiFeedbackServiceImpl
- All Implemented Interfaces:
KualiFeedbackService
- Direct Known Subclasses:
KualiExceptionIncidentServiceImpl
This class implements the KualiFeedbackService and contains logic
to send a feedback email to the feedback email list with information from
users.
-
Field Summary
Fields inherited from interface org.kuali.rice.krad.service.KualiFeedbackService
REPORT_MAIL_LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.kuali.rice.core.api.mail.MailMessagecreateMailMessage(String subject, String message) Creates an instance of MailMessage from the inputs using the given template.voidemailReport(String subject, String message) This mails the report using the mail service from the mail template.protected Stringorg.kuali.rice.core.api.mail.Mailerorg.kuali.rice.core.api.mail.MailMessageprotected StringvoidsendFeedback(String documentId, String componentName, String description) final voidsetMailer(org.kuali.rice.core.api.mail.Mailer mailer) voidsetMessageTemplate(org.kuali.rice.core.api.mail.MailMessage messageTemplate)
-
Constructor Details
-
KualiFeedbackServiceImpl
public KualiFeedbackServiceImpl()
-
-
Method Details
-
emailReport
This mails the report using the mail service from the mail template.- Specified by:
emailReportin interfaceKualiFeedbackService- Throws:
Exception- See Also:
-
sendFeedback
public void sendFeedback(String documentId, String componentName, String description) throws Exception - Specified by:
sendFeedbackin interfaceKualiFeedbackService- 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 textmessage- the body of the email message- Returns:
- MailMessage
- Throws:
IllegalStateException- if theREPORT_MAIL_LISTis not set or messageTemplate does not have ToAddresses already set.Exception
-
getFromAddress
-
getToAddresses
-
getToAddressesPropertyName
-
getCcAddresses
-
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)
-