Interface AnonymousConversationProvider


public interface AnonymousConversationProvider
A hook that can be implemented to create and find conversations for an anonymous user.
Author:
Filip Hrisafov
  • Method Summary

    Modifier and Type Method Description
    Conversation createConversation​(java.lang.String anonymousUserId, javax.servlet.http.HttpServletRequest request)
    Create a conversation for the given anonymous user.
    Conversation findConversation​(java.lang.String anonymousUserId, java.lang.String conversationId, javax.servlet.http.HttpServletRequest request)
    Find a conversation for the given anonymous user with the given conversation id.
  • Method Details

    • createConversation

      Conversation createConversation​(java.lang.String anonymousUserId, javax.servlet.http.HttpServletRequest request)
      Create a conversation for the given anonymous user.
      Parameters:
      anonymousUserId - the id of the anonymous user
      request - the request that can be used to get more information
      Returns:
      the conversation for the given anonymous user
    • findConversation

      Conversation findConversation​(java.lang.String anonymousUserId, java.lang.String conversationId, javax.servlet.http.HttpServletRequest request)
      Find a conversation for the given anonymous user with the given conversation id. If a conversation does not exist then null should be returned.
      Parameters:
      anonymousUserId - the id of the anonymous user
      conversationId - the id of the conversation
      request - the request that can be used to get more information
      Returns:
      the found conversation