Class DefaultPopupMessageService
- java.lang.Object
-
- org.silverpeas.core.notification.user.server.channel.popup.DefaultPopupMessageService
-
- All Implemented Interfaces:
PopupMessageService
@Service @Singleton public class DefaultPopupMessageService extends Object implements PopupMessageService
- Author:
- dblot
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultPopupMessageService()
Hidden constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteAll(String userId)
Deletes all the messages linked to the user and the session represented by given identifiers.void
deleteById(String msgId)
Deletes the message which is referenced by the given identifier.void
push(String userId, NotificationData notifMsg)
Pushes a new message into the context.PopupMsg
read(String userId)
Read the first message (the oldest in other words) about a user and a session.
-
-
-
Method Detail
-
read
public PopupMsg read(String userId)
Description copied from interface:PopupMessageService
Read the first message (the oldest in other words) about a user and a session.- Specified by:
read
in interfacePopupMessageService
- Parameters:
userId
- the identifier of the user.- Returns:
- an instance of
PopupMsg
which represents the Silverpeas message.
-
deleteById
public void deleteById(String msgId)
Description copied from interface:PopupMessageService
Deletes the message which is referenced by the given identifier.- Specified by:
deleteById
in interfacePopupMessageService
- Parameters:
msgId
- the identifier of the message to delete.
-
deleteAll
public void deleteAll(String userId)
Description copied from interface:PopupMessageService
Deletes all the messages linked to the user and the session represented by given identifiers.- Specified by:
deleteAll
in interfacePopupMessageService
- Parameters:
userId
- the identifier of the user.
-
push
public void push(String userId, NotificationData notifMsg)
Description copied from interface:PopupMessageService
Pushes a new message into the context.- Specified by:
push
in interfacePopupMessageService
- Parameters:
userId
- the identifier of the user.notifMsg
- the notification meta data.
-
-