Class DelayedNotificationDelegate

    • Constructor Detail

      • DelayedNotificationDelegate

        protected DelayedNotificationDelegate()
        Default constructor
    • Method Detail

      • executeUserDeleting

        public static void executeUserDeleting​(int userId)
                                        throws NotificationServerException
        Deleting all delayed notification data of a user
        Parameters:
        userId - the identifier of a user in Silverpeas.
        Throws:
        NotificationServerException - if an error occurs
      • executeDelayedNotificationsSending

        public static void executeDelayedNotificationsSending​(Date date)
                                                       throws NotificationServerException
        Easy call of delayed notifications process
        Parameters:
        date - the date at which the sending of the notification will be delayed.
        Throws:
        NotificationServerException - if an error occurs
      • executeForceDelayedNotificationsSending

        public static void executeForceDelayedNotificationsSending()
                                                            throws NotificationServerException
        Easy call of delayed notifications process. Forces the sending of all the delayed notifications saved for all users
        Throws:
        NotificationServerException - if an error occurs
      • executeForceDelayedNotificationsSending

        public static void executeForceDelayedNotificationsSending​(int userId,
                                                                   Set<NotifChannel> channels)
                                                            throws NotificationServerException
        Easy call of delayed notifications process. Forces the sending of all the delayed notifications saved for a given user
        Parameters:
        userId - the unique identifier of a user targeted by the notification.
        channels - the channels through which the notifications will be sent.
        Throws:
        NotificationServerException - if an error occurs
      • executeForceDelayedNotificationsSending

        public static void executeForceDelayedNotificationsSending​(List<Integer> userIds,
                                                                   Set<NotifChannel> channels)
                                                            throws NotificationServerException
        Easy call of delayed notifications process. Forces the sending of all the delayed notifications saved for given users and channels
        Parameters:
        userIds - the identifiers of the users targeted by the notifications.
        channels - the channels through which the notifications will be sent.
        Throws:
        NotificationServerException - if an error occurs
      • getUserDetail

        protected UserDetail getUserDetail​(Integer userId)
        Centralizes the searches of user details with cache feature
        Parameters:
        userId - the unique identifier of a user in Silverpeas
        Returns:
        the user with the specified identifier.