com.silverpeas.notification.builder.helper
Class UserNotificationHelper

java.lang.Object
  extended by com.silverpeas.notification.builder.helper.UserNotificationHelper

public class UserNotificationHelper
extends Object

Author:
Yohann Chastagnier

Constructor Summary
UserNotificationHelper()
           
 
Method Summary
static NotificationMetaData build(UserNotificationBuilder notificationBuider)
          Builds a notification data container from a given builder
static void buildAndSend(NotifMediaType mediaType, UserNotificationBuilder notificationBuider)
          Builds a notification data container from a given builder.
static void buildAndSend(UserNotificationBuilder notificationBuider)
          Builds a notification data container from a given builder.
static UserNotificationHelper getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserNotificationHelper

public UserNotificationHelper()
Method Detail

buildAndSend

public static void buildAndSend(UserNotificationBuilder notificationBuider)
Builds a notification data container from a given builder. After that, sends the builded notification

Parameters:
notificationBuider -

buildAndSend

public static void buildAndSend(NotifMediaType mediaType,
                                UserNotificationBuilder notificationBuider)
Builds a notification data container from a given builder. After that, sends the builded notification for the given media type

Parameters:
mediaType -
notificationBuider -

build

public static NotificationMetaData build(UserNotificationBuilder notificationBuider)
Builds a notification data container from a given builder

Parameters:
notificationBuider -
Returns:

getInstance

public static UserNotificationHelper getInstance()
Returns:
a UserNotificationHelper instance.


Copyright © 2016 Silverpeas. All Rights Reserved.