Class ReindexMessagesCmd
- java.lang.Object
-
- com.flowable.engage.engine.impl.cmd.ReindexMessagesCmd
-
-
Field Summary
Fields Modifier and Type Field Description protected String
conversationId
protected String
indexName
static int
MESSAGE_PAGE_SIZE
protected int
pageSize
protected int
start
-
Constructor Summary
Constructors Constructor Description ReindexMessagesCmd(String conversationId)
ReindexMessagesCmd(String indexName, int start, int pageSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
MESSAGE_PAGE_SIZE
public static final int MESSAGE_PAGE_SIZE
- See Also:
- Constant Field Values
-
indexName
protected String indexName
-
conversationId
protected String conversationId
-
start
protected int start
-
pageSize
protected int pageSize
-
-
Method Detail
-
execute
public Void execute(CommandContext commandContext)
-
reindexMessagesForConversation
protected void reindexMessagesForConversation(CommandContext commandContext, MessageEntityManager messageEntityManager, ConversationRegistryEntryEntityManager conversationRegistryEntryEntityManager)
-
reindexMessagesPage
protected void reindexMessagesPage(CommandContext commandContext, MessageEntityManager messageEntityManager, ConversationRegistryEntryEntityManager conversationRegistryEntryEntityManager)
-
determineParticipantUserIds
protected Set<String> determineParticipantUserIds(Message message, List<ConversationRegistryEntryEntity> registryEntities)
-
determineParticipantGroupIds
protected Set<String> determineParticipantGroupIds(Message message, List<ConversationRegistryEntryEntity> registryEntities)
-
isRegistryEntryApplicable
protected Predicate<ConversationRegistryEntryEntity> isRegistryEntryApplicable(Date messageTime)
-
-