Class KualiExceptionIncidentServiceImpl

java.lang.Object
org.kuali.rice.krad.service.impl.KualiFeedbackServiceImpl
org.kuali.rice.krad.service.impl.KualiExceptionIncidentServiceImpl
All Implemented Interfaces:
org.kuali.rice.krad.service.KualiExceptionIncidentService, org.kuali.rice.krad.service.KualiFeedbackService

public class KualiExceptionIncidentServiceImpl extends KualiFeedbackServiceImpl implements org.kuali.rice.krad.service.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 Details

    • REPORT_MAIL_LIST

      public static final String 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

      protected String getToAddressesPropertyName()
      Overrides:
      getToAddressesPropertyName in class KualiFeedbackServiceImpl
    • report

      public void report(org.kuali.rice.krad.exception.KualiExceptionIncident exceptionIncident) throws Exception
      This overridden method send email to the specified list of addresses.
      Specified by:
      report in interface org.kuali.rice.krad.service.KualiExceptionIncidentService
      Throws:
      Exception
      See Also:
      • KualiExceptionIncidentService.report(org.kuali.rice.krad.exception.KualiExceptionIncident)
    • split

      public List<String> split(String s, String token)
      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 org.kuali.rice.krad.exception.KualiExceptionIncident getExceptionIncident(Exception exception, Map<String,String> properties)
      This overridden method create an instance of the KualiExceptionIncident.
      Specified by:
      getExceptionIncident in interface org.kuali.rice.krad.service.KualiExceptionIncidentService
      See Also:
      • KualiExceptionIncidentService.getExceptionIncident(java.lang.Exception,java.util.Map)
    • getExceptionIncident

      public org.kuali.rice.krad.exception.KualiExceptionIncident getExceptionIncident(Map<String,String> properties)
      This overridden method create an instance of ExceptionIncident from list of name-value pairs as exception incident information.
      Specified by:
      getExceptionIncident in interface org.kuali.rice.krad.service.KualiExceptionIncidentService
      See Also:
      • KualiExceptionIncidentService.getExceptionIncident(java.util.Map)
    • getIncidentMailingList

      public String getIncidentMailingList()
      Returns the incident report mailing list.
      Returns:
      the incidentMailingList
    • setIncidentMailingList

      public void setIncidentMailingList(String incidentMailingList)
      Sets the incident report mailing list.
      Parameters:
      incidentMailingList - the incidentMailingList to set