Interface ServerMessageService

    • Method Detail

      • 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.
      • push

        void push​(String userId,
                  String message,
                  String sessionId)
        Pushes a new message into the context.
        Parameters:
        userId - the identifier of the user.
        message - the message content.
        sessionId - the identifier of the session.