public class ConversationUserQueryImpl extends Object implements ConversationUserQuery, org.flowable.common.engine.impl.interceptor.Command<List<String>>
ConversationUserQuery interface used to query for users involved in a conversation.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
addAssignedGroupMembers |
protected boolean |
addAssignedUsers |
protected boolean |
addCandidateGroupMembers |
protected boolean |
addParticipantUsers |
protected org.flowable.common.engine.impl.interceptor.CommandExecutor |
commandExecutor |
protected String |
conversationId |
protected boolean |
includeHistoricParticipants |
| Constructor and Description |
|---|
ConversationUserQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
ConversationUserQuery |
addAll()
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.
|
ConversationUserQuery |
addAssignedGroupMembers()
Includes all group members of the assigned group of the conversation.
|
ConversationUserQuery |
addAssignedUsers()
Includes all directly assigned users (e.g.
|
ConversationUserQuery |
addCandidateGroupMembers()
Includes all group members of all candidate groups of the conversation.
|
ConversationUserQuery |
addParticipantUsers()
Includes all participants of the conversation.
|
protected void |
checkQuery() |
ConversationUserQuery |
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.
|
List<String> |
execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
protected org.flowable.common.engine.impl.interceptor.CommandExecutor |
getCommandExecutor() |
ConversationUserQuery |
includeHistoricParticipants()
Includes participants that are not part of the current conversation, but have been part in the past.
|
List<String> |
list()
Returns the list of user ids according the query.
|
protected Collection<String> |
resolveGroupMembers(String groupId,
org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
protected final org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor
protected String conversationId
protected boolean addAssignedUsers
protected boolean addParticipantUsers
protected boolean addAssignedGroupMembers
protected boolean addCandidateGroupMembers
protected boolean includeHistoricParticipants
public ConversationUserQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
public ConversationUserQuery conversationId(String conversationId)
ConversationUserQueryconversationId in interface ConversationUserQueryconversationId - the id of the conversation to request users forpublic ConversationUserQuery addAll()
ConversationUserQueryaddAll in interface ConversationUserQuerypublic ConversationUserQuery addAssignedUsers()
ConversationUserQueryaddAssignedUsers in interface ConversationUserQuerypublic ConversationUserQuery addParticipantUsers()
ConversationUserQueryaddParticipantUsers in interface ConversationUserQuerypublic ConversationUserQuery addAssignedGroupMembers()
ConversationUserQueryaddAssignedGroupMembers in interface ConversationUserQuerypublic ConversationUserQuery addCandidateGroupMembers()
ConversationUserQueryaddCandidateGroupMembers in interface ConversationUserQuerypublic ConversationUserQuery includeHistoricParticipants()
ConversationUserQueryincludeHistoricParticipants in interface ConversationUserQueryprotected void checkQuery()
public List<String> execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
public long count()
ConversationUserQuerycount in interface ConversationUserQuerypublic List<String> list()
ConversationUserQuerylist in interface ConversationUserQueryprotected Collection<String> resolveGroupMembers(String groupId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
protected org.flowable.common.engine.impl.interceptor.CommandExecutor getCommandExecutor()
Copyright © 2019. All rights reserved.