Class EngageIndexingSchedulerImpl
java.lang.Object
com.flowable.engage.engine.impl.indexing.EngageIndexingSchedulerImpl
- All Implemented Interfaces:
EngageIndexingScheduler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EngageEngineConfigurationprotected IndexingServicestatic final Stringstatic final Stringprotected com.fasterxml.jackson.databind.ObjectMapperstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionEngageIndexingSchedulerImpl(IndexingService indexingService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, EngageEngineConfiguration engageEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidenhanceWithCachedUsers(Map<String, PlatformUser> participants, List<String> requestedUserIds) protected Map<String,PlatformUser> extractParticipants(List<IdentityLinkEntity> identityLinks, String tenantId, boolean checkCache) protected PlatformIdentityServiceprotected static booleanisAcceptableType(IdentityLinkEntity identityLink) protected booleanbooleanvoidscheduleConversationDeletion(String conversationId) voidscheduleConversationIndexing(ConversationEntity conversationEntity) voidscheduleConversationIndexing(ConversationEntity conversationEntity, String index) voidscheduleConversationLastMessageUpdate(ConversationEntity conversationEntity) voidscheduleConversationsParticipantAvatarUpdate(PlatformUser platformUser, PlatformUser oldUser) voidscheduleConversationsParticipantUpdate(PlatformUser platformUser, PlatformUser oldUser) voidscheduleMessageDeletion(String messageId) voidscheduleMessageIndexing(ConversationEntity conversationEntity, MessageEntity messageEntity) voidscheduleMessageIndexing(ConversationEntity conversationEntity, MessageEntity messageEntity, String index) voidscheduleMessageIndexing(MessageEntity messageEntity, Collection<String> participantUserIds, Collection<String> participantGroupIds, String index) voidscheduleMessagesParticipantAdded(ConversationEntity conversationEntity, Collection<String> participantUserIds, Date joiningTime)
-
Field Details
-
TYPE_INDEX_MESSAGE
- See Also:
-
TYPE_INDEX_CONVERSATION
- See Also:
-
MAPPING_TYPE_MESSAGE
- See Also:
-
MAPPING_TYPE_CONVERSATION
- See Also:
-
indexingService
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
engageEngineConfiguration
-
-
Constructor Details
-
EngageIndexingSchedulerImpl
public EngageIndexingSchedulerImpl(IndexingService indexingService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, EngageEngineConfiguration engageEngineConfiguration)
-
-
Method Details
-
scheduleMessageIndexing
public void scheduleMessageIndexing(ConversationEntity conversationEntity, MessageEntity messageEntity) - Specified by:
scheduleMessageIndexingin interfaceEngageIndexingScheduler
-
scheduleMessageIndexing
public void scheduleMessageIndexing(ConversationEntity conversationEntity, MessageEntity messageEntity, String index) - Specified by:
scheduleMessageIndexingin interfaceEngageIndexingScheduler
-
scheduleMessageIndexing
public void scheduleMessageIndexing(MessageEntity messageEntity, Collection<String> participantUserIds, Collection<String> participantGroupIds, String index) - Specified by:
scheduleMessageIndexingin interfaceEngageIndexingScheduler
-
scheduleMessagesParticipantAdded
public void scheduleMessagesParticipantAdded(ConversationEntity conversationEntity, Collection<String> participantUserIds, Date joiningTime) - Specified by:
scheduleMessagesParticipantAddedin interfaceEngageIndexingScheduler
-
scheduleConversationIndexing
- Specified by:
scheduleConversationIndexingin interfaceEngageIndexingScheduler
-
scheduleConversationIndexing
- Specified by:
scheduleConversationIndexingin interfaceEngageIndexingScheduler
-
scheduleConversationLastMessageUpdate
- Specified by:
scheduleConversationLastMessageUpdatein interfaceEngageIndexingScheduler
-
scheduleConversationsParticipantUpdate
- Specified by:
scheduleConversationsParticipantUpdatein interfaceEngageIndexingScheduler
-
scheduleConversationsParticipantAvatarUpdate
public void scheduleConversationsParticipantAvatarUpdate(PlatformUser platformUser, PlatformUser oldUser) - Specified by:
scheduleConversationsParticipantAvatarUpdatein interfaceEngageIndexingScheduler
-
scheduleConversationDeletion
- Specified by:
scheduleConversationDeletionin interfaceEngageIndexingScheduler
-
scheduleMessageDeletion
- Specified by:
scheduleMessageDeletionin interfaceEngageIndexingScheduler
-
getIdmIdentityService
-
isIndexingDisabled
protected boolean isIndexingDisabled() -
isIndexingEnabled
public boolean isIndexingEnabled() -
extractParticipants
protected Map<String,PlatformUser> extractParticipants(List<IdentityLinkEntity> identityLinks, String tenantId, boolean checkCache) -
enhanceWithCachedUsers
protected void enhanceWithCachedUsers(Map<String, PlatformUser> participants, List<String> requestedUserIds) -
isAcceptableType
-