public interface ConversationTagEvaluationContext
ConversationTagProvider
to request additional information
in order to evaluate tags for conversations. The context might cache data to improve lookup.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.
|
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.
|
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
isNewConversation() is
true , this method will return null . |
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 |
hasTag(String tag)
Returns
true if the specified tag has been added already. |
boolean |
isNewConversation()
Returns
true if this is a newly initialized conversation and this is the first time its tags are
evaluated. |
void |
removeTag(String tag)
A tag provider might also remove tags which have been added by providers beforehand.
|
String getConversationType()
String getConversationSubType()
String getConversationName()
String getConversationPermissionType()
String getConversationJoiningType()
Collection<String> getParticipants(boolean includeUserBasedParticipants, boolean includeGroupBasedParticipants)
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 wellboolean isNewConversation()
true
if this is a newly initialized conversation and this is the first time its tags are
evaluated. Obviously getOldTags()
will return null
.true
for a new conversation, false
when invoked to update a conversationSet<String> getOldTags()
isNewConversation()
is
true
, this method will return null
.null
only, if this is a new conversationSet<String> getCurrentTags()
null
boolean hasTag(String tag)
true
if the specified tag has been added already.tag
- the tag to checktrue
if the tag exists, false
otherwiseSet<String> getFilteredTags(String tagPrefix)
tagPrefix
- the prefix to filter the existing tags fornull
void addTag(String tag)
ConversationTagProvider.EVALUATED_TAGS_PREFIX
otherwise this method will throw
an exception.tag
- the tag to be addedvoid removeTag(String tag)
tag
- the tag to be removedCopyright © 2019. All rights reserved.