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 EngageIndexingSchedulerpublic void scheduleMessageIndexing(ConversationEntity conversationEntity, MessageEntity messageEntity, String index)
scheduleMessageIndexing in interface EngageIndexingSchedulerpublic void scheduleMessageIndexing(MessageEntity messageEntity, Collection<String> participantUserIds, Collection<String> participantGroupIds, String index)
scheduleMessageIndexing in interface EngageIndexingSchedulerpublic void scheduleMessagesParticipantAdded(ConversationEntity conversationEntity, Collection<String> participantUserIds, Date joiningTime)
scheduleMessagesParticipantAdded in interface EngageIndexingSchedulerpublic void scheduleConversationIndexing(ConversationEntity conversationEntity)
scheduleConversationIndexing in interface EngageIndexingSchedulerpublic void scheduleConversationIndexing(ConversationEntity conversationEntity, String index)
scheduleConversationIndexing in interface EngageIndexingSchedulerpublic void scheduleConversationLastMessageUpdate(ConversationEntity conversationEntity)
scheduleConversationLastMessageUpdate in interface EngageIndexingSchedulerpublic void scheduleConversationsParticipantUpdate(PlatformUser platformUser, PlatformUser oldUser)
scheduleConversationsParticipantUpdate in interface EngageIndexingSchedulerpublic void scheduleConversationsParticipantAvatarUpdate(PlatformUser platformUser, PlatformUser oldUser)
scheduleConversationsParticipantAvatarUpdate in interface EngageIndexingSchedulerpublic void scheduleConversationDeletion(String conversationId)
scheduleConversationDeletion in interface EngageIndexingSchedulerpublic void scheduleMessageDeletion(String messageId)
scheduleMessageDeletion in interface EngageIndexingSchedulerprotected 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)