public class EngageIndexingSchedulerImpl extends Object implements EngageIndexingScheduler
| Modifier and Type | Field and Description | 
|---|---|
| protected EngageEngineConfiguration | engageEngineConfiguration | 
| protected com.flowable.indexing.api.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(com.flowable.indexing.api.IndexingService indexingService,
                           com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                           EngageEngineConfiguration engageEngineConfiguration) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | enhanceWithCachedUsers(Map<String,com.flowable.core.idm.api.PlatformUser> participants,
                      List<String> requestedUserIds) | 
| protected Map<String,com.flowable.core.idm.api.PlatformUser> | extractParticipants(List<org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity> identityLinks,
                   String tenantId,
                   boolean checkCache) | 
| protected com.flowable.core.idm.api.PlatformIdentityService | getIdmIdentityService() | 
| protected static boolean | isAcceptableType(org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity identityLink) | 
| protected boolean | isIndexingDisabled() | 
| boolean | isIndexingEnabled() | 
| void | scheduleConversationDeletion(String conversationId) | 
| void | scheduleConversationIndexing(ConversationEntity conversationEntity) | 
| void | scheduleConversationIndexing(ConversationEntity conversationEntity,
                            String index) | 
| void | scheduleConversationLastMessageUpdate(ConversationEntity conversationEntity) | 
| void | scheduleConversationsParticipantAvatarUpdate(com.flowable.core.idm.api.PlatformUser platformUser,
                                            com.flowable.core.idm.api.PlatformUser oldUser) | 
| void | scheduleConversationsParticipantUpdate(com.flowable.core.idm.api.PlatformUser platformUser,
                                      com.flowable.core.idm.api.PlatformUser oldUser) | 
| void | scheduleMessageDeletion(String messageId) | 
| void | scheduleMessageIndexing(ConversationEntity conversationEntity,
                       MessageEntity messageEntity) | 
| void | scheduleMessageIndexing(ConversationEntity conversationEntity,
                       MessageEntity messageEntity,
                       String index) | 
| void | scheduleMessageIndexing(MessageEntity messageEntity,
                       Collection<String> participantUserIds,
                       Collection<String> participantGroupIds,
                       String index) | 
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 com.flowable.indexing.api.IndexingService indexingService
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected EngageEngineConfiguration engageEngineConfiguration
public EngageIndexingSchedulerImpl(com.flowable.indexing.api.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 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(com.flowable.core.idm.api.PlatformUser platformUser,
                                                   com.flowable.core.idm.api.PlatformUser oldUser)
scheduleConversationsParticipantUpdate in interface EngageIndexingSchedulerpublic void scheduleConversationsParticipantAvatarUpdate(com.flowable.core.idm.api.PlatformUser platformUser,
                                                         com.flowable.core.idm.api.PlatformUser oldUser)
scheduleConversationsParticipantAvatarUpdate in interface EngageIndexingSchedulerpublic void scheduleConversationDeletion(String conversationId)
scheduleConversationDeletion in interface EngageIndexingSchedulerpublic void scheduleMessageDeletion(String messageId)
scheduleMessageDeletion in interface EngageIndexingSchedulerprotected com.flowable.core.idm.api.PlatformIdentityService getIdmIdentityService()
protected boolean isIndexingDisabled()
public boolean isIndexingEnabled()
protected Map<String,com.flowable.core.idm.api.PlatformUser> extractParticipants(List<org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity> identityLinks, String tenantId, boolean checkCache)
protected void enhanceWithCachedUsers(Map<String,com.flowable.core.idm.api.PlatformUser> participants, List<String> requestedUserIds)
protected static boolean isAcceptableType(org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity identityLink)
Copyright © 2019. All rights reserved.