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 boolean
protected boolean
protected boolean
protected boolean
protected final CommandExecutor
protected String
protected 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 void
conversationId
(String conversationId) The id of the conversation to request users for must be provided through its id.long
count()
Counts the number of user ids according the query.execute
(CommandContext commandContext) protected CommandExecutor
Includes 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:ConversationUserQuery
The id of the conversation to request users for must be provided through its id.- Specified by:
conversationId
in interfaceConversationUserQuery
- Parameters:
conversationId
- the id of the conversation to request users for- Returns:
- the query builder for chaining
-
addAll
Description copied from interface:ConversationUserQuery
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.- Specified by:
addAll
in interfaceConversationUserQuery
- Returns:
- the query builder for chaining
-
addAssignedUsers
Description copied from interface:ConversationUserQuery
Includes all directly assigned users (e.g. owner and assignee) of the conversation.- Specified by:
addAssignedUsers
in interfaceConversationUserQuery
- Returns:
- the query builder for chaining
-
addParticipantUsers
Description copied from interface:ConversationUserQuery
Includes all participants of the conversation.- Specified by:
addParticipantUsers
in interfaceConversationUserQuery
- Returns:
- the query builder for chaining
-
addAssignedGroupMembers
Description copied from interface:ConversationUserQuery
Includes all group members of the assigned group of the conversation.- Specified by:
addAssignedGroupMembers
in interfaceConversationUserQuery
- Returns:
- the query builder for chaining
-
addCandidateGroupMembers
Description copied from interface:ConversationUserQuery
Includes all group members of all candidate groups of the conversation.- Specified by:
addCandidateGroupMembers
in interfaceConversationUserQuery
- Returns:
- the query builder for chaining
-
includeHistoricParticipants
Description copied from interface:ConversationUserQuery
Includes participants that are not part of the current conversation, but have been part in the past.- Specified by:
includeHistoricParticipants
in interfaceConversationUserQuery
- Returns:
- the query builder for chaining
-
checkQuery
protected void checkQuery() -
execute
-
count
public long count()Description copied from interface:ConversationUserQuery
Counts the number of user ids according the query.- Specified by:
count
in interfaceConversationUserQuery
- Returns:
- the total user count
-
list
Description copied from interface:ConversationUserQuery
Returns the list of user ids according the query.- Specified by:
list
in interfaceConversationUserQuery
- Returns:
- the list of user ids
-
resolveGroupMembers
-
getCommandExecutor
-