Class FindConversationParticipantsCmd
java.lang.Object
com.flowable.engage.engine.impl.cmd.FindConversationParticipantsCmd
- All Implemented Interfaces:
org.flowable.common.engine.impl.interceptor.Command<Collection<String>>
public class FindConversationParticipantsCmd
extends Object
implements org.flowable.common.engine.impl.interceptor.Command<Collection<String>>
Resolves the participants of a conversation with options whether to only include directly assigned users or
users assigned over member groups (like candidate groups or assigned group).
- Author:
- Micha Kiener, Filip Hrisafov
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFindConversationParticipantsCmd
(String conversationId) FindConversationParticipantsCmd
(String conversationId, boolean includeUserBasedParticipants, boolean includeGroupBasedParticipants) Creates a new command to find participants with options to resolve indirect users over group memberships.FindConversationParticipantsCmd
(List<org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity> conversationIdentities) FindConversationParticipantsCmd
(List<org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity> conversationIdentities, boolean includeUserBasedParticipants, boolean includeGroupBasedParticipants) Creates a new command to find participants with options to resolve indirect users over group memberships. -
Method Summary
Modifier and TypeMethodDescriptionexecute
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected Collection
<String> getAllGroupsUsers
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, List<org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity> identities) protected Collection
<String> getAllUsers
(List<org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity> identities) protected Collection
<String> resolveGroupMembers
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Collection<String> groups)
-
Field Details
-
conversationId
-
conversationIdentities
protected List<org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity> conversationIdentities -
includeUserBasedParticipants
protected final boolean includeUserBasedParticipants -
includeGroupBasedParticipants
protected final boolean includeGroupBasedParticipants
-
-
Constructor Details
-
FindConversationParticipantsCmd
-
FindConversationParticipantsCmd
public FindConversationParticipantsCmd(List<org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity> conversationIdentities) -
FindConversationParticipantsCmd
public FindConversationParticipantsCmd(String conversationId, boolean includeUserBasedParticipants, boolean includeGroupBasedParticipants) Creates a new command to find participants with options to resolve indirect users over group memberships.- Parameters:
conversationId
- the id of the conversation to find participantsincludeUserBasedParticipants
-true
if all directly assigned users should be returned as wellincludeGroupBasedParticipants
-true
if all group members of the assigned groups of the conversation should be resolved as well
-
FindConversationParticipantsCmd
public FindConversationParticipantsCmd(List<org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity> conversationIdentities, boolean includeUserBasedParticipants, boolean includeGroupBasedParticipants) Creates a new command to find participants with options to resolve indirect users over group memberships.- Parameters:
conversationIdentities
- the list of conversation identitiesincludeUserBasedParticipants
-true
if all directly assigned users should be returned as wellincludeGroupBasedParticipants
-true
if all group members of the assigned groups of the conversation should be resolved as well
-
-
Method Details
-
execute
public Collection<String> execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) - Specified by:
execute
in interfaceorg.flowable.common.engine.impl.interceptor.Command<Collection<String>>
-
getAllUsers
protected Collection<String> getAllUsers(List<org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity> identities) -
getAllGroupsUsers
protected Collection<String> getAllGroupsUsers(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, List<org.flowable.identitylink.service.impl.persistence.entity.IdentityLinkEntity> identities) -
resolveGroupMembers
protected Collection<String> resolveGroupMembers(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Collection<String> groups)
-