com.stratelia.silverpeas.notificationManager
Class NotificationSender

java.lang.Object
  extended by com.stratelia.silverpeas.notificationManager.NotificationSender
All Implemented Interfaces:
Serializable

public class NotificationSender
extends Object
implements Serializable

Cette classe est utilisee par les composants pour envoyer une notification a un (ou des) utilisateur(s) (ou groupes) Elle package les appels et appelle la fonction du NotificationManager pour reellement envoyer les notifications

See Also:
Serialized Form

Field Summary
protected  int instanceId
           
protected  NotificationManager notificationManager
           
 
Constructor Summary
NotificationSender(String instanceId)
          Constructor for a standard component
 
Method Summary
static String[] getIdsArrayFromIdsLine(String src)
           
static String getIdsLineFromGroupArray(Group[] groups)
           
static String getIdsLineFromIdsArray(String[] asrc)
           
static String getIdsLineFromUserArray(UserDetail[] users)
           
 void notifyUser(int aMediaType, NotificationMetaData metaData)
          Method declaration
 void notifyUser(NotificationMetaData metaData)
          Method declaration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

notificationManager

protected NotificationManager notificationManager

instanceId

protected int instanceId
Constructor Detail

NotificationSender

public NotificationSender(String instanceId)
Constructor for a standard component

Parameters:
instanceId - the instance Id of the calling's component
Method Detail

notifyUser

public void notifyUser(NotificationMetaData metaData)
                throws NotificationManagerException
Method declaration

Parameters:
metaData -
Throws:
NotificationManagerException
See Also:

notifyUser

public void notifyUser(int aMediaType,
                       NotificationMetaData metaData)
                throws NotificationManagerException
Method declaration

Parameters:
aMediaType -
metaData -
Throws:
NotificationManagerException
See Also:

getIdsLineFromIdsArray

public static String getIdsLineFromIdsArray(String[] asrc)

getIdsLineFromUserArray

public static String getIdsLineFromUserArray(UserDetail[] users)

getIdsLineFromGroupArray

public static String getIdsLineFromGroupArray(Group[] groups)

getIdsArrayFromIdsLine

public static String[] getIdsArrayFromIdsLine(String src)


Copyright © 2016 Silverpeas. All Rights Reserved.