Package org.kuali.rice.krad.service.impl
Class KualiExceptionIncidentServiceImpl
java.lang.Object
org.kuali.rice.krad.service.impl.KualiFeedbackServiceImpl
org.kuali.rice.krad.service.impl.KualiExceptionIncidentServiceImpl
- All Implemented Interfaces:
KualiExceptionIncidentService,KualiFeedbackService
public class KualiExceptionIncidentServiceImpl
extends KualiFeedbackServiceImpl
implements KualiExceptionIncidentService
Modified this service so that it now extends the KualiFeedbackServiceImpl.
This has been done to allow user feedback and exception incidents to be
reported in the same way, but to potentially different email lists. Part
of this refactor included moving the mailer and messageTemplate properties
and the emailReport and createMailMessage methods to the new parent class.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis property must be defined in the base configuration file for specifying the mailing list for the report to be sent. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExceptionIncident(Exception exception, Map<String, String> properties) This overridden method create an instance of the KualiExceptionIncident.getExceptionIncident(Map<String, String> properties) This overridden method create an instance of ExceptionIncident from list of name-value pairs as exception incident information.Returns the incident report mailing list.protected Stringvoidreport(KualiExceptionIncident exceptionIncident) This overridden method send email to the specified list of addresses.voidsetIncidentMailingList(String incidentMailingList) Sets the incident report mailing list.This method first separate a composite string of the format "string token string".Methods inherited from class org.kuali.rice.krad.service.impl.KualiFeedbackServiceImpl
createMailMessage, emailReport, getBccAddresses, getCcAddresses, getFromAddress, getMailer, getMessageTemplate, getToAddresses, sendFeedback, setMailer, setMessageTemplateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.service.KualiFeedbackService
emailReport, sendFeedback
-
Field Details
-
REPORT_MAIL_LIST
This property must be defined in the base configuration file for specifying the mailing list for the report to be sent.Example:
<param name="KualiReporterServiceImpl.REPORT_MAIL_LIST">a@y,b@z</param>
-
-
Constructor Details
-
KualiExceptionIncidentServiceImpl
public KualiExceptionIncidentServiceImpl()
-
-
Method Details
-
getToAddressesPropertyName
- Overrides:
getToAddressesPropertyNamein classKualiFeedbackServiceImpl
-
report
This overridden method send email to the specified list of addresses.- Specified by:
reportin interfaceKualiExceptionIncidentService- Throws:
Exception- See Also:
-
split
This method first separate a composite string of the format "string token string".Example: 1,2,a,b where ',' is the token
- Parameters:
s-token-- Returns:
-
getExceptionIncident
public KualiExceptionIncident getExceptionIncident(Exception exception, Map<String, String> properties) This overridden method create an instance of the KualiExceptionIncident.- Specified by:
getExceptionIncidentin interfaceKualiExceptionIncidentService- See Also:
-
getExceptionIncident
This overridden method create an instance of ExceptionIncident from list of name-value pairs as exception incident information.- Specified by:
getExceptionIncidentin interfaceKualiExceptionIncidentService- See Also:
-
getIncidentMailingList
Returns the incident report mailing list.- Returns:
- the incidentMailingList
-
setIncidentMailingList
Sets the incident report mailing list.- Parameters:
incidentMailingList- the incidentMailingList to set
-