com.silverpeas.mailinglist.service.notification
Class AdvancedNotificationHelper

java.lang.Object
  extended by com.silverpeas.mailinglist.service.notification.SimpleNotificationHelper
      extended by com.silverpeas.mailinglist.service.notification.AdvancedNotificationHelper
All Implemented Interfaces:
NotificationHelper

public class AdvancedNotificationHelper
extends SimpleNotificationHelper

Utility class to send notifications.

Version:
$revision$
Author:
Emmanuel Hugonnet

Field Summary
static String MESSAGE_TEMPLATE_FILE
           
static String MODERATION_TEMPLATE_FILE
           
 
Fields inherited from class com.silverpeas.mailinglist.service.notification.SimpleNotificationHelper
BATCH_SIZE
 
Constructor Summary
AdvancedNotificationHelper()
           
 
Method Summary
 com.silverpeas.util.template.SilverpeasTemplate getTemplate(Message message, String mailingListName, boolean moderate)
           
 void notifyInternals(Message message, MailingList list, Collection<String> userIds, Collection<String> groupIds, boolean moderate)
           
 
Methods inherited from class com.silverpeas.mailinglist.service.notification.SimpleNotificationHelper
createTask, getCalendarBm, getGroupIds, getModeratorsIds, getNotificationFormatter, getNotificationSender, getOrganisationController, getSession, getSmtpConfig, getUsersIds, isExternalThread, notify, notifyExternals, notifyModerators, notifyUsers, notifyUsersAndModerators, sendMail, setCalendarBm, setExternalThread, setNotificationFormatter, setNotificationSender, setOrganisationController, setSession, setSmtpConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODERATION_TEMPLATE_FILE

public static final String MODERATION_TEMPLATE_FILE
See Also:
Constant Field Values

MESSAGE_TEMPLATE_FILE

public static final String MESSAGE_TEMPLATE_FILE
See Also:
Constant Field Values
Constructor Detail

AdvancedNotificationHelper

public AdvancedNotificationHelper()
Method Detail

getTemplate

public com.silverpeas.util.template.SilverpeasTemplate getTemplate(Message message,
                                                                   String mailingListName,
                                                                   boolean moderate)

notifyInternals

public void notifyInternals(Message message,
                            MailingList list,
                            Collection<String> userIds,
                            Collection<String> groupIds,
                            boolean moderate)
                     throws com.stratelia.silverpeas.notificationManager.NotificationManagerException
Overrides:
notifyInternals in class SimpleNotificationHelper
Throws:
com.stratelia.silverpeas.notificationManager.NotificationManagerException


Copyright © 2016 Silverpeas. All Rights Reserved.