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 Stringprotected List<IdentityLinkEntity>protected final booleanprotected 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-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 Details
-
execute
- Specified by:
executein interfaceCommand<Collection<String>>
-
getAllUsers
-
getAllGroupsUsers
protected Collection<String> getAllGroupsUsers(CommandContext commandContext, List<IdentityLinkEntity> identities) -
resolveGroupMembers
protected Collection<String> resolveGroupMembers(CommandContext commandContext, Collection<String> groups)
-