Class MessageServiceImpl

    • Constructor Detail

      • MessageServiceImpl

        public MessageServiceImpl()
    • Method Detail

      • save

        public void save​(Message message)
        Description copied from interface: MessageService
        Saves message
        Specified by:
        save in interface MessageService
        Parameters:
        message - Message data
      • haveConversation

        public Conversation haveConversation​(Long id)
        Description copied from interface: MessageService
        Checks if conversation with given id exists
        Specified by:
        haveConversation in interface MessageService
        Parameters:
        id - Conversation id
        Returns:
        Conversation or null if not exists
      • findByIdGreaterThan

        public List<Message> findByIdGreaterThan​(Long conversationId,
                                                 Long id)
        Description copied from interface: MessageService
        Search for messages with offset
        Specified by:
        findByIdGreaterThan in interface MessageService
        Parameters:
        conversationId - Conversation id
        id - Offset message id
        Returns:
        List of messages of given conversation with identifiers greater than given