@Service(value="cuba_ExceptionReportService") public class ExceptionReportServiceBean extends java.lang.Object implements ExceptionReportService
Modifier and Type | Field and Description |
---|---|
protected EmailerAPI |
emailer |
protected EmailerConfig |
emailerConfig |
protected ResourceService |
resourceService |
protected Scripting |
scripting |
protected ServerConfig |
serverConfig |
protected UserSessionSource |
userSessionSource |
NAME
Constructor and Description |
---|
ExceptionReportServiceBean() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExceptionReportBody(java.util.Map<java.lang.String,java.lang.Object> binding) |
java.lang.String |
getExceptionReportSubject(java.util.Map<java.lang.String,java.lang.Object> binding) |
protected java.lang.String |
getTemplate(java.util.Map<java.lang.String,java.lang.Object> binding,
java.lang.String template) |
void |
sendExceptionReport(java.lang.String supportEmail,
java.util.Map<java.lang.String,java.lang.Object> binding)
Send the exception report email.
|
protected void |
setEmailerConfig(EmailerConfig emailerConfig) |
protected EmailerConfig emailerConfig
@Inject protected ServerConfig serverConfig
@Inject protected ResourceService resourceService
@Inject protected Scripting scripting
@Inject protected UserSessionSource userSessionSource
@Inject protected EmailerAPI emailer
@Inject protected void setEmailerConfig(EmailerConfig emailerConfig)
public void sendExceptionReport(java.lang.String supportEmail, java.util.Map<java.lang.String,java.lang.Object> binding)
ExceptionReportService
sendExceptionReport
in interface ExceptionReportService
supportEmail
- email address to sendbinding
- map that contains values to bind in email templatepublic java.lang.String getExceptionReportBody(java.util.Map<java.lang.String,java.lang.Object> binding)
public java.lang.String getExceptionReportSubject(java.util.Map<java.lang.String,java.lang.Object> binding)
protected java.lang.String getTemplate(java.util.Map<java.lang.String,java.lang.Object> binding, java.lang.String template)