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)
ConversationUserQuery
conversationId
in interface ConversationUserQuery
conversationId
- the id of the conversation to request users forpublic ConversationUserQuery addAll()
ConversationUserQuery
addAll
in interface ConversationUserQuery
public ConversationUserQuery addAssignedUsers()
ConversationUserQuery
addAssignedUsers
in interface ConversationUserQuery
public ConversationUserQuery addParticipantUsers()
ConversationUserQuery
addParticipantUsers
in interface ConversationUserQuery
public ConversationUserQuery addAssignedGroupMembers()
ConversationUserQuery
addAssignedGroupMembers
in interface ConversationUserQuery
public ConversationUserQuery addCandidateGroupMembers()
ConversationUserQuery
addCandidateGroupMembers
in interface ConversationUserQuery
public ConversationUserQuery includeHistoricParticipants()
ConversationUserQuery
includeHistoricParticipants
in interface ConversationUserQuery
protected void checkQuery()
public List<String> execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
public long count()
ConversationUserQuery
count
in interface ConversationUserQuery
public List<String> list()
ConversationUserQuery
list
in interface ConversationUserQuery
protected 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.