|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.service.impl.KualiFeedbackServiceImpl org.kuali.rice.krad.service.impl.KualiExceptionIncidentServiceImpl
public class KualiExceptionIncidentServiceImpl
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.
Field Summary | |
---|---|
static 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. |
Constructor Summary | |
---|---|
KualiExceptionIncidentServiceImpl()
|
Method Summary | |
---|---|
KualiExceptionIncident |
getExceptionIncident(Exception exception,
Map<String,String> properties)
This overridden method create an instance of the KualiExceptionIncident. |
KualiExceptionIncident |
getExceptionIncident(Map<String,String> properties)
This overridden method create an instance of ExceptionIncident from list of name-value pairs as exception incident information. |
String |
getIncidentMailingList()
Returns the incident report mailing list. |
protected String |
getToAddressesPropertyName()
|
void |
report(KualiExceptionIncident exceptionIncident)
This overridden method send email to the specified list of addresses. |
void |
setIncidentMailingList(String incidentMailingList)
Sets the incident report mailing list. |
List<String> |
split(String s,
String token)
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, setMessageTemplate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.service.KualiFeedbackService |
---|
emailReport, sendFeedback |
Field Detail |
---|
public static final String REPORT_MAIL_LIST
Example:
a@y,b@z
Constructor Detail |
---|
public KualiExceptionIncidentServiceImpl()
Method Detail |
---|
protected String getToAddressesPropertyName()
getToAddressesPropertyName
in class KualiFeedbackServiceImpl
public void report(KualiExceptionIncident exceptionIncident) throws Exception
report
in interface KualiExceptionIncidentService
Exception
KualiExceptionIncidentService.report(org.kuali.rice.krad.exception.KualiExceptionIncident)
public List<String> split(String s, String token)
Example: 1,2,a,b where ',' is the token
s
- token
-
public KualiExceptionIncident getExceptionIncident(Exception exception, Map<String,String> properties)
getExceptionIncident
in interface KualiExceptionIncidentService
properties
- Additional information when the exception is thrown
example:
KualiExceptionIncidentService.getExceptionIncident(
java.lang.Exception,java.util.Map)
public KualiExceptionIncident getExceptionIncident(Map<String,String> properties)
getExceptionIncident
in interface KualiExceptionIncidentService
properties
- The list of name-value pairs containing the thrown exception
information
KualiExceptionIncidentService.getExceptionIncident(java.util.Map)
public String getIncidentMailingList()
public void setIncidentMailingList(String incidentMailingList)
incidentMailingList
- the incidentMailingList to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |