Class AddParticipantsToConversationCmd
java.lang.Object
com.flowable.engage.engine.impl.cmd.AddParticipantsToConversationCmd
- All Implemented Interfaces:
org.flowable.common.engine.impl.interceptor.Command<Collection<String>>
public class AddParticipantsToConversationCmd
extends Object
implements org.flowable.common.engine.impl.interceptor.Command<Collection<String>>
- Author:
- Filip Hrisafov, Micha Kiener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.flowable.common.engine.impl.runtime.Clock
protected final String
protected ConversationRegistryEntryEntityManager
protected org.flowable.identitylink.service.IdentityLinkService
protected final List
<JoinParticipantsData> protected MessageService
-
Constructor Summary
ConstructorsConstructorDescriptionAddParticipantsToConversationCmd
(String conversationId, JoinParticipantsData data) AddParticipantsToConversationCmd
(String conversationId, List<JoinParticipantsData> data) -
Method Summary
Modifier and TypeMethodDescriptionprotected Date
calculateJoiningTime
(JoinParticipantsData data, ConversationEntity conversation) execute
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected Message
getPastMessage
(int messageNumber) protected Collection
<String> handleJoiningParticipantData
(JoinParticipantsData data, ConversationEntity conversation, Set<String> currentParticipants, String authenticatedUserId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
-
Field Details
-
conversationId
-
joinParticipantsData
-
identityLinkService
protected org.flowable.identitylink.service.IdentityLinkService identityLinkService -
conversationRegistry
-
messageService
-
clock
protected org.flowable.common.engine.impl.runtime.Clock clock
-
-
Constructor Details
-
AddParticipantsToConversationCmd
-
AddParticipantsToConversationCmd
-
-
Method Details
-
execute
public Collection<String> execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) - Specified by:
execute
in interfaceorg.flowable.common.engine.impl.interceptor.Command<Collection<String>>
-
handleJoiningParticipantData
protected Collection<String> handleJoiningParticipantData(JoinParticipantsData data, ConversationEntity conversation, Set<String> currentParticipants, String authenticatedUserId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
calculateJoiningTime
-
getPastMessage
-