public abstract class AbstractConversationTagEvaluationContext extends Object implements ConversationTagEvaluationContext
Modifier and Type | Field and Description |
---|---|
protected org.flowable.common.engine.impl.interceptor.CommandContext |
commandContext |
protected Set<String> |
newTags |
protected Set<String> |
oldTags |
Modifier | Constructor and Description |
---|---|
protected |
AbstractConversationTagEvaluationContext(org.flowable.common.engine.impl.interceptor.CommandContext commandContext,
Collection<String> oldTags) |
Modifier and Type | Method and Description |
---|---|
void |
addTag(String tag)
Adds the provided tag to the list of tags for the conversation being evaluated for tags.
|
org.flowable.common.engine.impl.interceptor.CommandContext |
getCommandContext() |
Set<String> |
getCurrentTags()
Returns the set of the currently assigned tags from previous providers or the current provider.
|
Set<String> |
getFilteredTags(String tagPrefix)
Returns a filtered set of existing tags with a specific prefix.
|
Set<String> |
getOldTags()
Returns the previously evaluated tags (existing tags) for this conversation, if
ConversationTagEvaluationContext.isNewConversation() is
true , this method will return null . |
boolean |
hasTag(String tag)
Returns
true if the specified tag has been added already. |
void |
removeTag(String tag)
A tag provider might also remove tags which have been added by providers beforehand.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConversationJoiningType, getConversationName, getConversationPermissionType, getConversationSubType, getConversationType, getParticipants, isNewConversation
protected final org.flowable.common.engine.impl.interceptor.CommandContext commandContext
protected AbstractConversationTagEvaluationContext(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Collection<String> oldTags)
public Set<String> getOldTags()
ConversationTagEvaluationContext
ConversationTagEvaluationContext.isNewConversation()
is
true
, this method will return null
.getOldTags
in interface ConversationTagEvaluationContext
null
only, if this is a new conversationpublic Set<String> getCurrentTags()
ConversationTagEvaluationContext
getCurrentTags
in interface ConversationTagEvaluationContext
null
public boolean hasTag(String tag)
ConversationTagEvaluationContext
true
if the specified tag has been added already.hasTag
in interface ConversationTagEvaluationContext
tag
- the tag to checktrue
if the tag exists, false
otherwisepublic Set<String> getFilteredTags(String tagPrefix)
ConversationTagEvaluationContext
getFilteredTags
in interface ConversationTagEvaluationContext
tagPrefix
- the prefix to filter the existing tags fornull
public void addTag(String tag)
ConversationTagEvaluationContext
ConversationTagProvider.EVALUATED_TAGS_PREFIX
otherwise this method will throw
an exception.addTag
in interface ConversationTagEvaluationContext
tag
- the tag to be addedpublic void removeTag(String tag)
ConversationTagEvaluationContext
removeTag
in interface ConversationTagEvaluationContext
tag
- the tag to be removedpublic org.flowable.common.engine.impl.interceptor.CommandContext getCommandContext()
Copyright © 2019. All rights reserved.