public class AddParticipantsToConversationCmd extends Object implements Command<Collection<String>>
Modifier and Type | Field and Description |
---|---|
protected Clock |
clock |
protected String |
conversationId |
protected ConversationRegistryEntryEntityManager |
conversationRegistry |
protected IdentityLinkService |
identityLinkService |
protected List<JoinParticipantsData> |
joinParticipantsData |
protected MessageService |
messageService |
Constructor and Description |
---|
AddParticipantsToConversationCmd(String conversationId,
JoinParticipantsData data) |
AddParticipantsToConversationCmd(String conversationId,
List<JoinParticipantsData> data) |
Modifier and Type | Method and Description |
---|---|
protected Date |
calculateJoiningTime(JoinParticipantsData data,
ConversationEntity conversation) |
Collection<String> |
execute(CommandContext commandContext) |
protected Message |
getPastMessage(int messageNumber) |
protected Collection<String> |
handleJoiningParticipantData(JoinParticipantsData data,
ConversationEntity conversation,
Set<String> currentParticipants,
String authenticatedUserId,
CommandContext commandContext) |
protected final String conversationId
protected final List<JoinParticipantsData> joinParticipantsData
protected IdentityLinkService identityLinkService
protected ConversationRegistryEntryEntityManager conversationRegistry
protected MessageService messageService
protected Clock clock
public AddParticipantsToConversationCmd(String conversationId, JoinParticipantsData data)
public AddParticipantsToConversationCmd(String conversationId, List<JoinParticipantsData> data)
public Collection<String> execute(CommandContext commandContext)
execute
in interface Command<Collection<String>>
protected Collection<String> handleJoiningParticipantData(JoinParticipantsData data, ConversationEntity conversation, Set<String> currentParticipants, String authenticatedUserId, CommandContext commandContext)
protected Date calculateJoiningTime(JoinParticipantsData data, ConversationEntity conversation)
protected Message getPastMessage(int messageNumber)