Class ConversationUserQueryImpl
java.lang.Object
com.flowable.engage.engine.impl.conversation.ConversationUserQueryImpl
- All Implemented Interfaces:
ConversationUserQuery,Command<List<String>>
public class ConversationUserQueryImpl
extends Object
implements ConversationUserQuery, Command<List<String>>
The implementation of the
ConversationUserQuery interface used to query for users involved in a conversation.- Author:
- Micha Kiener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected final CommandExecutorprotected Stringprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAll()This will return all users involved within a conversation, including directly assigned participants, owners and assignees as well as indirectly involved users through group memberships.Includes all group members of the assigned group of the conversation.Includes all directly assigned users (e.g.Includes all group members of all candidate groups of the conversation.Includes all participants of the conversation.protected voidconversationId(String conversationId) The id of the conversation to request users for must be provided through its id.longcount()Counts the number of user ids according the query.execute(CommandContext commandContext) protected CommandExecutorIncludes participants that are not part of the current conversation, but have been part in the past.list()Returns the list of user ids according the query.protected Collection<String>resolveGroupMembers(String groupId, CommandContext commandContext)
-
Field Details
-
commandExecutor
-
conversationId
-
addAssignedUsers
protected boolean addAssignedUsers -
addParticipantUsers
protected boolean addParticipantUsers -
addAssignedGroupMembers
protected boolean addAssignedGroupMembers -
addCandidateGroupMembers
protected boolean addCandidateGroupMembers -
includeHistoricParticipants
protected boolean includeHistoricParticipants
-
-
Constructor Details
-
ConversationUserQueryImpl
-
-
Method Details
-
conversationId
Description copied from interface:ConversationUserQueryThe id of the conversation to request users for must be provided through its id.- Specified by:
conversationIdin interfaceConversationUserQuery- Parameters:
conversationId- the id of the conversation to request users for- Returns:
- the query builder for chaining
-
addAll
Description copied from interface:ConversationUserQueryThis will return all users involved within a conversation, including directly assigned participants, owners and assignees as well as indirectly involved users through group memberships.- Specified by:
addAllin interfaceConversationUserQuery- Returns:
- the query builder for chaining
-
addAssignedUsers
Description copied from interface:ConversationUserQueryIncludes all directly assigned users (e.g. owner and assignee) of the conversation.- Specified by:
addAssignedUsersin interfaceConversationUserQuery- Returns:
- the query builder for chaining
-
addParticipantUsers
Description copied from interface:ConversationUserQueryIncludes all participants of the conversation.- Specified by:
addParticipantUsersin interfaceConversationUserQuery- Returns:
- the query builder for chaining
-
addAssignedGroupMembers
Description copied from interface:ConversationUserQueryIncludes all group members of the assigned group of the conversation.- Specified by:
addAssignedGroupMembersin interfaceConversationUserQuery- Returns:
- the query builder for chaining
-
addCandidateGroupMembers
Description copied from interface:ConversationUserQueryIncludes all group members of all candidate groups of the conversation.- Specified by:
addCandidateGroupMembersin interfaceConversationUserQuery- Returns:
- the query builder for chaining
-
includeHistoricParticipants
Description copied from interface:ConversationUserQueryIncludes participants that are not part of the current conversation, but have been part in the past.- Specified by:
includeHistoricParticipantsin interfaceConversationUserQuery- Returns:
- the query builder for chaining
-
checkQuery
protected void checkQuery() -
execute
-
count
public long count()Description copied from interface:ConversationUserQueryCounts the number of user ids according the query.- Specified by:
countin interfaceConversationUserQuery- Returns:
- the total user count
-
list
Description copied from interface:ConversationUserQueryReturns the list of user ids according the query.- Specified by:
listin interfaceConversationUserQuery- Returns:
- the list of user ids
-
resolveGroupMembers
-
getCommandExecutor
-