Modifier and Type | Field and Description |
---|---|
protected String |
conversationId |
protected String |
indexName |
static int |
MESSAGE_PAGE_SIZE |
protected int |
pageSize |
protected int |
start |
Constructor and Description |
---|
ReindexMessagesCmd(String conversationId) |
ReindexMessagesCmd(String indexName,
int start,
int pageSize) |
Modifier and Type | Method and Description |
---|---|
protected Set<String> |
determineParticipantGroupIds(Message message,
List<ConversationRegistryEntryEntity> registryEntities) |
protected Set<String> |
determineParticipantUserIds(Message message,
List<ConversationRegistryEntryEntity> registryEntities) |
Void |
execute(CommandContext commandContext) |
protected Predicate<ConversationRegistryEntryEntity> |
isRegistryEntryApplicable(Date messageTime) |
protected void |
reindexMessagesForConversation(CommandContext commandContext,
MessageEntityManager messageEntityManager,
ConversationRegistryEntryEntityManager conversationRegistryEntryEntityManager) |
protected void |
reindexMessagesPage(CommandContext commandContext,
MessageEntityManager messageEntityManager,
ConversationRegistryEntryEntityManager conversationRegistryEntryEntityManager) |
public static final int MESSAGE_PAGE_SIZE
protected String indexName
protected String conversationId
protected int start
protected int pageSize
public ReindexMessagesCmd(String indexName, int start, int pageSize)
public ReindexMessagesCmd(String conversationId)
public Void execute(CommandContext commandContext)
protected void reindexMessagesForConversation(CommandContext commandContext, MessageEntityManager messageEntityManager, ConversationRegistryEntryEntityManager conversationRegistryEntryEntityManager)
protected void reindexMessagesPage(CommandContext commandContext, MessageEntityManager messageEntityManager, ConversationRegistryEntryEntityManager conversationRegistryEntryEntityManager)
protected Set<String> determineParticipantUserIds(Message message, List<ConversationRegistryEntryEntity> registryEntities)
protected Set<String> determineParticipantGroupIds(Message message, List<ConversationRegistryEntryEntity> registryEntities)
protected Predicate<ConversationRegistryEntryEntity> isRegistryEntryApplicable(Date messageTime)