public class FindConversationParticipantsCmd extends Object implements Command<Collection<String>>
Modifier and Type | Field and Description |
---|---|
protected String |
conversationId |
protected List<IdentityLinkEntity> |
conversationIdentities |
protected boolean |
includeGroupBasedParticipants |
protected boolean |
includeUserBasedParticipants |
Constructor and Description |
---|
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.
|
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.
|
Modifier and Type | Method and 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) |
protected final String conversationId
protected List<IdentityLinkEntity> conversationIdentities
protected final boolean includeUserBasedParticipants
protected final boolean includeGroupBasedParticipants
public FindConversationParticipantsCmd(String conversationId)
public FindConversationParticipantsCmd(List<IdentityLinkEntity> conversationIdentities)
public FindConversationParticipantsCmd(String conversationId, boolean includeUserBasedParticipants, boolean includeGroupBasedParticipants)
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 wellpublic FindConversationParticipantsCmd(List<IdentityLinkEntity> conversationIdentities, boolean includeUserBasedParticipants, boolean includeGroupBasedParticipants)
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 wellpublic Collection<String> execute(CommandContext commandContext)
execute
in interface Command<Collection<String>>
protected Collection<String> getAllUsers(List<IdentityLinkEntity> identities)
protected Collection<String> getAllGroupsUsers(CommandContext commandContext, List<IdentityLinkEntity> identities)
protected Collection<String> resolveGroupMembers(CommandContext commandContext, Collection<String> groups)