public class ConversationBuilderBasedTagEvaluationContext extends AbstractConversationTagEvaluationContext
Modifier and Type | Field and Description |
---|---|
protected ConversationBuilder |
conversationBuilder |
commandContext, newTags, oldTags
Constructor and Description |
---|
ConversationBuilderBasedTagEvaluationContext(ConversationBuilder conversationBuilder,
org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
Modifier and Type | Method and Description |
---|---|
String |
getConversationJoiningType()
Returns the joining type of the conversation which defines on how new participants might join the running
conversation.
|
String |
getConversationName()
Returns the name of the conversation being evaluated for tags.
|
String |
getConversationPermissionType()
Returns the permission type for the conversation which is used to drive the permissions for messages and events
sent to this conversation.
|
String |
getConversationSubType()
Returns the sub type of the conversation being evaluated for tags.
|
String |
getConversationType()
Returns the type of the conversation being evaluated for tags.
|
Collection<String> |
getParticipants(boolean includeUserBasedParticipants,
boolean includeGroupBasedParticipants)
Returns the participants of the conversation, optionally including directly assigned users or indirectly assigned
users over member groups.
|
boolean |
isNewConversation()
Returns
true if this is a newly initialized conversation and this is the first time its tags are
evaluated. |
protected Collection<String> |
resolveGroupMembers(Collection<String> groupIds) |
protected Collection<String> |
resolveGroupMembers(String groupId) |
addTag, getCommandContext, getCurrentTags, getFilteredTags, getOldTags, hasTag, removeTag
protected final ConversationBuilder conversationBuilder
public ConversationBuilderBasedTagEvaluationContext(ConversationBuilder conversationBuilder, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
public String getConversationType()
ConversationTagEvaluationContext
public String getConversationSubType()
ConversationTagEvaluationContext
public String getConversationName()
ConversationTagEvaluationContext
public String getConversationPermissionType()
ConversationTagEvaluationContext
public String getConversationJoiningType()
ConversationTagEvaluationContext
public Collection<String> getParticipants(boolean includeUserBasedParticipants, boolean includeGroupBasedParticipants)
ConversationTagEvaluationContext
includeUserBasedParticipants
- 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 wellprotected Collection<String> resolveGroupMembers(String groupId)
protected Collection<String> resolveGroupMembers(Collection<String> groupIds)
public boolean isNewConversation()
ConversationTagEvaluationContext
true
if this is a newly initialized conversation and this is the first time its tags are
evaluated. Obviously ConversationTagEvaluationContext.getOldTags()
will return null
.true
for a new conversation, false
when invoked to update a conversationCopyright © 2019. All rights reserved.