public class EngageIndexingSchedulerImpl extends Object implements EngageIndexingScheduler
Modifier and Type | Field and Description |
---|---|
protected EngageEngineConfiguration |
engageEngineConfiguration |
protected IndexingService |
indexingService |
static String |
MAPPING_TYPE_CONVERSATION |
static String |
MAPPING_TYPE_MESSAGE |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
static String |
TYPE_INDEX_CONVERSATION |
static String |
TYPE_INDEX_MESSAGE |
Constructor and Description |
---|
EngageIndexingSchedulerImpl(IndexingService indexingService,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
EngageEngineConfiguration engageEngineConfiguration) |
public static final String TYPE_INDEX_MESSAGE
public static final String TYPE_INDEX_CONVERSATION
public static final String MAPPING_TYPE_MESSAGE
public static final String MAPPING_TYPE_CONVERSATION
protected IndexingService indexingService
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected EngageEngineConfiguration engageEngineConfiguration
public EngageIndexingSchedulerImpl(IndexingService indexingService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, EngageEngineConfiguration engageEngineConfiguration)
public void scheduleMessageIndexing(ConversationEntity conversationEntity, MessageEntity messageEntity)
scheduleMessageIndexing
in interface EngageIndexingScheduler
public void scheduleMessageIndexing(ConversationEntity conversationEntity, MessageEntity messageEntity, String index)
scheduleMessageIndexing
in interface EngageIndexingScheduler
public void scheduleMessageIndexing(MessageEntity messageEntity, Collection<String> participantUserIds, Collection<String> participantGroupIds, String index)
scheduleMessageIndexing
in interface EngageIndexingScheduler
public void scheduleMessagesParticipantAdded(ConversationEntity conversationEntity, Collection<String> participantUserIds, Date joiningTime)
scheduleMessagesParticipantAdded
in interface EngageIndexingScheduler
public void scheduleConversationIndexing(ConversationEntity conversationEntity)
scheduleConversationIndexing
in interface EngageIndexingScheduler
public void scheduleConversationIndexing(ConversationEntity conversationEntity, String index)
scheduleConversationIndexing
in interface EngageIndexingScheduler
public void scheduleConversationLastMessageUpdate(ConversationEntity conversationEntity)
scheduleConversationLastMessageUpdate
in interface EngageIndexingScheduler
public void scheduleConversationsParticipantUpdate(PlatformUser platformUser, PlatformUser oldUser)
scheduleConversationsParticipantUpdate
in interface EngageIndexingScheduler
public void scheduleConversationsParticipantAvatarUpdate(PlatformUser platformUser, PlatformUser oldUser)
scheduleConversationsParticipantAvatarUpdate
in interface EngageIndexingScheduler
public void scheduleConversationDeletion(String conversationId)
scheduleConversationDeletion
in interface EngageIndexingScheduler
public void scheduleMessageDeletion(String messageId)
scheduleMessageDeletion
in interface EngageIndexingScheduler
protected PlatformIdentityService getIdmIdentityService()
protected boolean isIndexingDisabled()
public boolean isIndexingEnabled()
protected Map<String,PlatformUser> extractParticipants(List<IdentityLinkEntity> identityLinks, String tenantId, boolean checkCache)
protected void enhanceWithCachedUsers(Map<String,PlatformUser> participants, List<String> requestedUserIds)
protected static boolean isAcceptableType(IdentityLinkEntity identityLink)