Class SimpleNotificationHelper

java.lang.Object
org.silverpeas.components.mailinglist.service.notification.SimpleNotificationHelper
All Implemented Interfaces:
NotificationHelper
Direct Known Subclasses:
AdvancedNotificationHelper

public class SimpleNotificationHelper extends Object implements NotificationHelper
Utility class to send notifications.
Author:
Emmanuel Hugonnet
  • Field Details

  • Constructor Details

    • SimpleNotificationHelper

      public SimpleNotificationHelper()
  • Method Details

    • notifyModerators

      public void notifyModerators(Message message, MailingList list) throws org.silverpeas.core.notification.NotificationException
      Throws:
      org.silverpeas.core.notification.NotificationException
    • notifyUsers

      public void notifyUsers(Message message, MailingList list) throws org.silverpeas.core.notification.NotificationException
      Throws:
      org.silverpeas.core.notification.NotificationException
    • notifyUsersAndModerators

      public void notifyUsersAndModerators(Message message, MailingList list) throws org.silverpeas.core.notification.NotificationException
      Throws:
      org.silverpeas.core.notification.NotificationException
    • notifyInternals

      public void notifyInternals(Message message, MailingList list, Collection<String> userIds, Collection<String> groupIds, boolean moderate) throws org.silverpeas.core.notification.NotificationException
      Throws:
      org.silverpeas.core.notification.NotificationException
    • sendNotification

      protected void sendNotification(Message message, MailingList list, Collection<String> userIds, Collection<String> groupIds, boolean moderate, org.silverpeas.core.notification.user.client.NotificationMetaData metadata, String defaultTitle) throws org.silverpeas.core.notification.NotificationException
      Throws:
      org.silverpeas.core.notification.NotificationException
    • notifyExternals

      public void notifyExternals(Message message, MailingList list) throws jakarta.mail.MessagingException
      Throws:
      jakarta.mail.MessagingException
    • sendMail

      protected void sendMail(org.silverpeas.core.mail.MailSending mail, Collection<ExternalUser> externalUsers)
    • getNotificationFormatter

      public NotificationFormatter getNotificationFormatter()
    • getModeratorsIds

      public Set<String> getModeratorsIds(MailingList list)
    • getUsersIds

      public Set<String> getUsersIds(MailingList list)
    • getGroupIds

      public Set<String> getGroupIds(MailingList list)
    • getCalendar

      public org.silverpeas.core.personalorganizer.service.SilverpeasCalendar getCalendar()
    • createTask

      protected void createTask(Message message, String title, Collection<String> userIds) throws org.silverpeas.core.personalorganizer.service.CalendarRuntimeException
      Throws:
      org.silverpeas.core.personalorganizer.service.CalendarRuntimeException
    • notify

      public void notify(Message message, MailingList list) throws jakarta.mail.MessagingException, org.silverpeas.core.notification.NotificationException
      Specified by:
      notify in interface NotificationHelper
      Throws:
      jakarta.mail.MessagingException
      org.silverpeas.core.notification.NotificationException