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.Clockprotected final Stringprotected ConversationRegistryEntryEntityManagerprotected org.flowable.identitylink.service.IdentityLinkServiceprotected final List<JoinParticipantsData> protected MessageService -
Constructor Summary
ConstructorsConstructorDescriptionAddParticipantsToConversationCmd(String conversationId, JoinParticipantsData data) AddParticipantsToConversationCmd(String conversationId, List<JoinParticipantsData> data) -
Method Summary
Modifier and TypeMethodDescriptionprotected DatecalculateJoiningTime(JoinParticipantsData data, ConversationEntity conversation) execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected MessagegetPastMessage(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:
executein 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
-