Interface CreateConversationExtension
public interface CreateConversationExtension
Implement this interface to extend the conversation creation service task with a pre and post hook.
- Author:
- Micha Kiener
-
Method Summary
Modifier and Type Method Description void
afterCreateConversation(Conversation conversation, boolean reusedConversation, java.util.Collection<java.lang.String> participantIds)
Is invoked just after the conversation was created or an existing one was found and reused.void
beforeCreateConversation(ConversationBuilder conversationBuilder, java.util.Collection<java.lang.String> participantIds)
Is invoked just before the conversation will be created using the given builder.
-
Method Details
-
beforeCreateConversation
void beforeCreateConversation(ConversationBuilder conversationBuilder, java.util.Collection<java.lang.String> participantIds)Is invoked just before the conversation will be created using the given builder. The builder is already setup according the values provided by the service task configuration, but can be used to overwrite / additionally configure the new conversation.- Parameters:
conversationBuilder
- the initialized builder holding the values for the new conversationparticipantIds
- the collection of the participants of the conversation
-
afterCreateConversation
void afterCreateConversation(Conversation conversation, boolean reusedConversation, java.util.Collection<java.lang.String> participantIds)Is invoked just after the conversation was created or an existing one was found and reused.- Parameters:
conversation
- the newly created conversation or the reused onereusedConversation
- true, if the conversation was reused, false, if it is a new oneparticipantIds
- the collection of the participants of the conversation
-