Class FindConversationParticipantsCmd
java.lang.Object
com.flowable.engage.engine.impl.cmd.FindConversationParticipantsCmd
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionprotected final String
protected List<IdentityLinkEntity>
protected final boolean
protected final boolean
-
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<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
Modifier and TypeMethodDescriptionexecute
(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 Details
-
conversationId
-
conversationIdentities
-
includeUserBasedParticipants
protected final boolean includeUserBasedParticipants -
includeGroupBasedParticipants
protected final boolean includeGroupBasedParticipants
-
-
Constructor Details
-
FindConversationParticipantsCmd
-
FindConversationParticipantsCmd
-
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<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
- Specified by:
execute
in interfaceCommand<Collection<String>>
-
getAllUsers
-
getAllGroupsUsers
protected Collection<String> getAllGroupsUsers(CommandContext commandContext, List<IdentityLinkEntity> identities) -
resolveGroupMembers
protected Collection<String> resolveGroupMembers(CommandContext commandContext, Collection<String> groups)
-