Class UserNotificationSessionController

    • Constructor Detail

    • Method Detail

      • getUsersFrom

        public List<User> getUsersFrom​(String userIdsLine)
        Gets the list of users whose the identifiers are specified in the given line.
        Parameters:
        userIdsLine - a line of underscore-separated user's unique identifiers.
        Returns:
        a list of users.
      • getGroupsFrom

        public List<Group> getGroupsFrom​(String groupIdsLine)
        Gets the list of groups whose the identifiers are specified in the given line.
        Parameters:
        groupIdsLine - a line of underscore-separated group's unique identifiers.
        Returns:
        a list of groups.
      • prepareNotification

        public UserNotification prepareNotification​(NotificationContext context)
        Prepares a user notification from the specified context ready to be customized by the notification editor and then to be sent later.
        Parameters:
        context - a notification context. It can contain additional parameters specific to a given Silverpeas component instance.
        Returns:
        the user notification that will be sent later.
      • clearNotification

        public void clearNotification()
        Clears any prepared notification.
      • sendNotification

        public void sendNotification​(NotificationContext context)
        Sends the notification described by the specified context.
        Parameters:
        context - the context of the notification to send. It contains all the properties required to build the notification and to send it.