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