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 userrequest
- 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 thennull
should be returned.- Parameters:
anonymousUserId
- the id of the anonymous userconversationId
- the id of the conversationrequest
- the request that can be used to get more information- Returns:
- the found conversation
-