Interface ServerMessageService
-
- All Known Implementing Classes:
DefaultServerMessageService
public interface ServerMessageService
- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteAll(String userId, String sessionId)
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 ServerMessageService
get()
void
push(String userId, String message, String sessionId)
Pushes a new message into the context.ServerMsg
read(String userId, String sessionId)
Read the first message (the oldest in other words) about a user and a session.
-
-
-
Method Detail
-
get
static ServerMessageService get()
-
read
ServerMsg read(String userId, String sessionId)
Read the first message (the oldest in other words) about a user and a session.- Parameters:
userId
- the identifier of the user.sessionId
- the identifier of the session.- Returns:
- an instance of
ServerMsg
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, String sessionId)
Deletes all the messages linked to the user and the session represented by given identifiers.- Parameters:
userId
- the identifier of the user.sessionId
- the identifier of the session.
-
-