Class FindConversationParticipantsCmd
- java.lang.Object
-
- com.flowable.engage.engine.impl.cmd.FindConversationParticipantsCmd
-
- All Implemented Interfaces:
Command<Collection<String>>
public class FindConversationParticipantsCmd extends Object implements 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 Modifier and Type Field Description protected StringconversationIdprotected List<IdentityLinkEntity>conversationIdentitiesprotected booleanincludeGroupBasedParticipantsprotected booleanincludeUserBasedParticipants
-
Constructor Summary
Constructors Constructor Description FindConversationParticipantsCmd(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<IdentityLinkEntity> conversationIdentities)FindConversationParticipantsCmd(List<IdentityLinkEntity> conversationIdentities, boolean includeUserBasedParticipants, boolean includeGroupBasedParticipants)Creates a new command to find participants with options to resolve indirect users over group memberships.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>execute(CommandContext commandContext)protected Collection<String>getAllGroupsUsers(CommandContext commandContext, List<IdentityLinkEntity> identities)protected Collection<String>getAllUsers(List<IdentityLinkEntity> identities)protected Collection<String>resolveGroupMembers(CommandContext commandContext, Collection<String> groups)
-
-
-
Field Detail
-
conversationId
protected final String conversationId
-
conversationIdentities
protected List<IdentityLinkEntity> conversationIdentities
-
includeUserBasedParticipants
protected final boolean includeUserBasedParticipants
-
includeGroupBasedParticipants
protected final boolean includeGroupBasedParticipants
-
-
Constructor Detail
-
FindConversationParticipantsCmd
public FindConversationParticipantsCmd(String conversationId)
-
FindConversationParticipantsCmd
public FindConversationParticipantsCmd(List<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-trueif all directly assigned users should be returned as wellincludeGroupBasedParticipants-trueif all group members of the assigned groups of the conversation should be resolved as well
-
FindConversationParticipantsCmd
public FindConversationParticipantsCmd(List<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-trueif all directly assigned users should be returned as wellincludeGroupBasedParticipants-trueif all group members of the assigned groups of the conversation should be resolved as well
-
-
Method Detail
-
execute
public Collection<String> execute(CommandContext commandContext)
- Specified by:
executein interfaceCommand<Collection<String>>
-
getAllUsers
protected Collection<String> getAllUsers(List<IdentityLinkEntity> identities)
-
getAllGroupsUsers
protected Collection<String> getAllGroupsUsers(CommandContext commandContext, List<IdentityLinkEntity> identities)
-
resolveGroupMembers
protected Collection<String> resolveGroupMembers(CommandContext commandContext, Collection<String> groups)
-
-