Interface PopupMessageService
-
- All Known Implementing Classes:
DefaultPopupMessageService
public interface PopupMessageService
- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract 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.static PopupMessageService
get()
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
-
get
static PopupMessageService get()
-
read
PopupMsg read(String userId)
Read the first message (the oldest in other words) about a user and a session.- Parameters:
userId
- the identifier of the user.- Returns:
- an instance of
PopupMsg
which represents the Silverpeas message.
-
deleteById
void deleteById(String msgId)
Deletes the message which is referenced by the given identifier.- Parameters:
msgId
- the identifier of the message to delete.
-
deleteAll
void deleteAll(String userId)
Deletes all the messages linked to the user and the session represented by given identifiers.- Parameters:
userId
- the identifier of the user.
-
push
void push(String userId, NotificationData notifMsg)
Pushes a new message into the context.- Parameters:
userId
- the identifier of the user.notifMsg
- the notification meta data.
-
-