Class ConversationUserQueryImpl
java.lang.Object
com.flowable.engage.engine.impl.conversation.ConversationUserQueryImpl
- All Implemented Interfaces:
ConversationUserQuery
,org.flowable.common.engine.impl.interceptor.Command<java.util.List<java.lang.String>>
public class ConversationUserQueryImpl extends java.lang.Object implements ConversationUserQuery, org.flowable.common.engine.impl.interceptor.Command<java.util.List<java.lang.String>>
The implementation of the
ConversationUserQuery
interface used to query for users involved in a conversation.- Author:
- Micha Kiener
-
Field Summary
Fields Modifier and Type Field Description protected boolean
addAssignedGroupMembers
protected boolean
addAssignedUsers
protected boolean
addCandidateGroupMembers
protected boolean
addParticipantUsers
protected org.flowable.common.engine.impl.interceptor.CommandExecutor
commandExecutor
protected java.lang.String
conversationId
protected boolean
includeHistoricParticipants
-
Constructor Summary
Constructors Constructor Description ConversationUserQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
-
Method Summary
Modifier and Type Method 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(java.lang.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.java.util.List<java.lang.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.java.util.List<java.lang.String>
list()
Returns the list of user ids according the query.protected java.util.Collection<java.lang.String>
resolveGroupMembers(java.lang.String groupId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
-
Field Details
-
commandExecutor
protected final org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor -
conversationId
protected java.lang.String conversationId -
addAssignedUsers
protected boolean addAssignedUsers -
addParticipantUsers
protected boolean addParticipantUsers -
addAssignedGroupMembers
protected boolean addAssignedGroupMembers -
addCandidateGroupMembers
protected boolean addCandidateGroupMembers -
includeHistoricParticipants
protected boolean includeHistoricParticipants
-
-
Constructor Details
-
ConversationUserQueryImpl
public ConversationUserQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
-
-
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
public java.util.List<java.lang.String> execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)- Specified by:
execute
in interfaceorg.flowable.common.engine.impl.interceptor.Command<java.util.List<java.lang.String>>
-
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
public java.util.List<java.lang.String> 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
protected java.util.Collection<java.lang.String> resolveGroupMembers(java.lang.String groupId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getCommandExecutor
protected org.flowable.common.engine.impl.interceptor.CommandExecutor getCommandExecutor()
-