Add method to INotificationManager to return email service status
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public boolean isSendingMail() {
|
| | | return false;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void sendMailToAdministrators(String subject, String message) {
|
| | | }
|
| | |
|
| | |
| | | */ |
| | | |
| | | @Override |
| | | public boolean isSendingMail() { |
| | | return notificationManager.isSendingMail(); |
| | | } |
| | | |
| | | @Override |
| | | public void sendMailToAdministrators(String subject, String message) { |
| | | notificationManager.sendMailToAdministrators(subject, message); |
| | | } |
| | |
| | | public interface INotificationManager extends IManager { |
| | | |
| | | /** |
| | | * Returns true if the email service is configured and ready to send notifications. |
| | | * |
| | | * @return true if the email service is operational |
| | | * @since 1.6.0 |
| | | */ |
| | | boolean isSendingMail(); |
| | | |
| | | /** |
| | | * Notify the administrators by email. |
| | | * |
| | | * @param subject |
| | |
| | | return this; |
| | | } |
| | | |
| | | @Override |
| | | public boolean isSendingMail() { |
| | | return mailService.isReady(); |
| | | } |
| | | |
| | | /** |
| | | * Notify the administrators by email. |
| | | * |