|
||||||||||
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.KualiExceptionIncidentServiceImpl
public class KualiExceptionIncidentServiceImpl
This is a basic implementation of the KualiReporterService. Currently, it only has a mail service as reporting mechanism.
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 | |
---|---|
void |
emailReport(String subject,
String message)
This mails the report using the mail service from the mail template. |
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()
|
MailMessage |
getMessageTemplate()
|
void |
report(KualiExceptionIncident exceptionIncident)
This overridden method send email to the specified list of addresses. |
void |
setIncidentMailingList(String incidentMailingList)
|
void |
setMailer(Mailer mailer)
The injected Mailer. |
void |
setMessageTemplate(MailMessage messageTemplate)
|
List<String> |
split(String s,
String token)
This method first separate a composite string of the format "string token string". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REPORT_MAIL_LIST
Example:
a@y,b@z
Constructor Detail |
---|
public KualiExceptionIncidentServiceImpl()
Method Detail |
---|
public final void setMailer(Mailer mailer)
mailService
- the mailService to setpublic void emailReport(String subject, String message) throws Exception
emailReport
in interface KualiExceptionIncidentService
Exception
KualiExceptionIncidentService.emailReport(java.lang.String, java.lang.String)
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 final MailMessage getMessageTemplate()
public final void setMessageTemplate(MailMessage messageTemplate)
messageTemplate
- the messageTemplate to setpublic 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 |