Class ConversationRegistryEntryServiceImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.service.CommonServiceImpl<C>
-
- org.flowable.common.engine.impl.service.CommonEngineServiceImpl<EngageEngineConfiguration>
-
- com.flowable.engage.engine.impl.conversation.ConversationRegistryEntryServiceImpl
-
- All Implemented Interfaces:
ConversationRegistryEntryService
public class ConversationRegistryEntryServiceImpl extends CommonEngineServiceImpl<EngageEngineConfiguration> implements ConversationRegistryEntryService
- Author:
- Simon Amport
-
-
Field Summary
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutor
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
-
Constructor Summary
Constructors Constructor Description ConversationRegistryEntryServiceImpl(EngageEngineConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcountConversationParticipants(String conversationId, Date date)Return the number of active participants (user without a leaving time) at a specific time.ConversationRegistryEntryQuerycreateConversationRegistryQuery()List<String>findConversationParticipantsBetween(String conversationId, Date from, Date until)Return a list of user ids which were part of the the conversation between the given period.-
Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
-
-
-
Constructor Detail
-
ConversationRegistryEntryServiceImpl
public ConversationRegistryEntryServiceImpl(EngageEngineConfiguration configuration)
-
-
Method Detail
-
createConversationRegistryQuery
public ConversationRegistryEntryQuery createConversationRegistryQuery()
- Specified by:
createConversationRegistryQueryin interfaceConversationRegistryEntryService
-
countConversationParticipants
public long countConversationParticipants(String conversationId, Date date)
Description copied from interface:ConversationRegistryEntryServiceReturn the number of active participants (user without a leaving time) at a specific time.- Specified by:
countConversationParticipantsin interfaceConversationRegistryEntryService- Parameters:
conversationId- the conversation iddate- optional- Returns:
- the number of active participants
-
findConversationParticipantsBetween
public List<String> findConversationParticipantsBetween(String conversationId, Date from, Date until)
Description copied from interface:ConversationRegistryEntryServiceReturn a list of user ids which were part of the the conversation between the given period.- Specified by:
findConversationParticipantsBetweenin interfaceConversationRegistryEntryServicefrom- optionaluntil- optional- Returns:
- list of ids associated with the conversation
-
-