|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.notificationManager.AbstractNotification
com.silverpeas.notification.delayed.delegate.DelayedNotificationDelegate
public class DelayedNotificationDelegate
Constructor Summary | |
---|---|
protected |
DelayedNotificationDelegate()
Default constructor |
Method Summary | |
---|---|
static void |
executeDelayedNotificationsSending(Date date)
Easy call of delayed notifications process |
static void |
executeForceDelayedNotificationsSending()
Easy call of delayed notifications process. |
static void |
executeForceDelayedNotificationsSending(int userId,
Set<NotifChannel> channels)
Easy call of delayed notifications process. |
static void |
executeForceDelayedNotificationsSending(List<Integer> userIds,
Set<NotifChannel> channels)
Easy call of delayed notifications process. |
static void |
executeNewNotification(DelayedNotificationData delayedNotificationData)
Easy call of new notification process |
static void |
executeUserDeleting(int userId)
Deleting all delayed notification data of a user |
static DelayedNotificationUserSetting |
executeUserSettingsUpdating(int userId,
NotifChannel channel,
DelayedNotificationFrequency frequency)
When user settings change, if the new frequency is NONE then the delayed notifications saved have to be sent |
protected void |
forceDelayedNotificationsSending()
Forces the sending of all the delayed notifications saved for all users |
protected void |
forceDelayedNotificationsSending(List<Integer> userIds,
Set<NotifChannel> channels)
Forces the sending of all the delayed notifications saved for given users and channels |
protected UserDetail |
getUserDetail(Integer userId)
Centralizes the searches of user details with cache feature |
protected void |
performDelayedNotificationsSending(Date date,
Set<NotifChannel> channels)
Handling the saved delayed notifications from a given date and given channels |
protected void |
performNewNotificationSending(DelayedNotificationData delayedNotificationData)
Handling a new notification |
protected void |
sendNotification(NotificationData notificationData)
Centralizes notification sending |
Methods inherited from class com.stratelia.silverpeas.notificationManager.AbstractNotification |
---|
computeURL, computeURL, getApplicationURL, getUserAutoRedirectSilverpeasServerURL, getUserAutoRedirectURL, getUserAutoRedirectURL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DelayedNotificationDelegate()
Method Detail |
---|
public static void executeUserDeleting(int userId) throws Exception
userId
-
Exception
public static DelayedNotificationUserSetting executeUserSettingsUpdating(int userId, NotifChannel channel, DelayedNotificationFrequency frequency) throws Exception
userId
- channel
- frequency
-
Exception
public static void executeNewNotification(DelayedNotificationData delayedNotificationData) throws Exception
delayedNotificationData
-
Exception
protected void performNewNotificationSending(DelayedNotificationData delayedNotificationData) throws Exception
delayedNotificationData
-
Exception
public static void executeDelayedNotificationsSending(Date date) throws Exception
date
-
Exception
public static void executeForceDelayedNotificationsSending() throws Exception
Exception
public static void executeForceDelayedNotificationsSending(int userId, Set<NotifChannel> channels) throws Exception
userId
- channels
-
Exception
public static void executeForceDelayedNotificationsSending(List<Integer> userIds, Set<NotifChannel> channels) throws Exception
userIds
- channels
-
Exception
protected void forceDelayedNotificationsSending() throws Exception
Exception
protected void forceDelayedNotificationsSending(List<Integer> userIds, Set<NotifChannel> channels) throws Exception
userIds
- channels
-
Exception
protected void performDelayedNotificationsSending(Date date, Set<NotifChannel> channels) throws Exception
date
- channels
-
Exception
protected UserDetail getUserDetail(Integer userId) throws Exception
userId
-
Exception
protected void sendNotification(NotificationData notificationData) throws NotificationServerException
notificationData
-
NotificationServerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |