public interface ConversationBuilder extends Taggable
Conversation
objects. An instance might be received through
ConversationService.createConversationBuilder()
.Modifier and Type | Method and Description |
---|---|
ConversationBuilder |
addCandidateGroup(String candidateGroup) |
ConversationBuilder |
addParticipant(String participant) |
ConversationBuilder |
addTag(String tag) |
ConversationBuilder |
assignedGroupId(String assignedGroupId) |
ConversationBuilder |
assigneeId(String assigneeId) |
ConversationBuilder |
avatarId(String avatarId)
Optionally set the avatar information for this conversation.
|
ConversationBuilder |
candidateGroups(Set<String> candidateGroups) |
ConversationBuilder |
conversationDefinitionId(String conversationDefinitionId)
Set the id of the conversation definition.
|
ConversationBuilder |
conversationDefinitionKey(String conversationDefinitionKey)
Set the key of the conversation definition.
|
ConversationBuilder |
description(String description)
Set the optional description describing the reason or goal of the conversation in more details than the name.
|
ConversationBuilder |
externalId(String externalId)
Set the external id of the conversation.
|
ConversationBuilder |
fallbackName(String fallbackName)
Set the optional fallback name to be used, if there is no explicit name being set (e.g.
|
String |
getAssignedGroupId() |
String |
getAssigneeId() |
String |
getAvatarId() |
Set<String> |
getCandidateGroups() |
String |
getConversationDefinitionId() |
String |
getConversationDefinitionKey()
Returns the key that will be used to do the conversation definition lookup when creating the conversation.
|
String |
getDescription() |
String |
getExternalId() |
String |
getFallbackName()
Optional name to display when there's no title.
|
String |
getJoiningType() |
String |
getName() |
String |
getOwnerId() |
String |
getParentId() |
Set<String> |
getParticipants() |
String |
getPermissionType() |
String |
getReferenceDefinitionId() |
String |
getReferenceId() |
String |
getReferenceType() |
String |
getSubType() |
String |
getTenantId() |
String |
getType() |
ConversationBuilder |
joiningType(String joiningType)
Set the joining type used for this conversation.
|
ConversationBuilder |
name(String name)
Set the optional name for this conversation.
|
ConversationBuilder |
ownerId(String ownerId) |
ConversationBuilder |
parentId(String parentId)
Set the id of the parent conversation, if this is a child conversation (e.g.
|
ConversationBuilder |
participants(Set<String> participants) |
ConversationBuilder |
permissionType(String permissionType)
Set the permission type to be used for this conversation.
|
ConversationBuilder |
referenceDefinitionId(String referenceDefinitionId)
Set the reference definition id of the conversation pointing to for example a case or process definition id.
|
ConversationBuilder |
referenceId(String referenceId)
Set the reference id of the conversation pointing to for example a case or process instance id.
|
ConversationBuilder |
referenceType(String referenceType)
Set the reference type of the conversation pointing to for example a case or process instance type.
|
Conversation |
start()
Returns the newly created conversation object.
|
Conversation |
startWithPermissionCheck(String userId)
Deprecated.
|
Conversation |
startWithPermissionCheck(String userId,
Collection<String> userGroupKeys,
String userTenantId)
Same as
start() with an additional permission check that the user with userId is allowed to create the conversation. |
ConversationHolder |
startWithReuse()
Tries to find a similar conversation, if found it would return that one.
|
ConversationHolder |
startWithReuseAndPermissionCheck(String userId)
Deprecated.
|
ConversationHolder |
startWithReuseAndPermissionCheck(String userId,
Collection<String> userGroupKeys,
String userTenantId)
Same as
startWithReuse() with an additional permission check that the user with userId is allowed to create the conversation. |
ConversationBuilder |
subType(String type)
Set the sub type of this conversation.
|
ConversationBuilder |
tags(Collection<String> tags) |
ConversationBuilder |
tenantId(String tenantId)
Optionally sets the tenantId for this conversation.
|
ConversationBuilder |
type(String type)
Set the type for this conversation which has an impact on how participants might be joined, on permissions or other behaviors of the conversation.
|
String getExternalId()
Conversation.getExternalId()
ConversationBuilder externalId(String externalId)
externalId
- the external id for the conversationString getParentId()
Conversation.getParentId()
ConversationBuilder parentId(String parentId)
parentId
- the id of the parent conversationString getConversationDefinitionId()
ConversationBuilder conversationDefinitionId(String conversationDefinitionId)
conversationDefinitionId
- the id of the conversation definitionConversationBuilder conversationDefinitionKey(String conversationDefinitionKey)
conversationDefinitionKey
- The key that will be used to find the latest version of the conversation definition.String getConversationDefinitionKey()
ConversationBuilder subType(String type)
type
- the sub type of the conversationString getSubType()
Conversation.getSubType()
ConversationBuilder type(String type)
joiningType(String)
and permissionType(String)
of it as well. The
type is a mandatory field and must be set explicitly using this method. As the joining and permission types are evaluated according the type
within this method, make sure to explicitly set them (if necessary) AFTER setting the sub type, otherwise they will be overwritten with defaults.type
- the sub type to set for this conversationConversation.getType()
,
ConversationTypes
String getType()
Conversation.getType()
String getPermissionType()
Conversation.getPermissionType()
ConversationBuilder permissionType(String permissionType)
type(String)
, make sure to set it explicitly using this method AFTER the type is set!permissionType
- the permission type to be set for the conversationConversation.getPermissionType()
,
PermissionTypes
String getJoiningType()
Conversation.getJoiningType()
ConversationBuilder joiningType(String joiningType)
type(String)
, make sure to set it explicitly using this method AFTER the type is set!joiningType
- the joining type to be set for this conversationConversation.getJoiningType()
,
JoiningTypes
String getName()
Conversation.getName()
ConversationBuilder name(String name)
name
- the name for the created conversationString getFallbackName()
ConversationBuilder fallbackName(String fallbackName)
fallbackName
- the optional fallback name for the conversationConversation.getFallbackName()
String getDescription()
Conversation.getDescription()
ConversationBuilder description(String description)
description
- the description for the conversationConversationBuilder referenceId(String referenceId)
referenceId
- The reference id pointing to for example a case or process instance id.String getReferenceId()
ConversationBuilder referenceType(String referenceType)
referenceType
- The reference id pointing to for example a case or process instance type.String getReferenceType()
ConversationBuilder referenceDefinitionId(String referenceDefinitionId)
referenceDefinitionId
- The reference definition id pointing to for example a case or process definition id.String getReferenceDefinitionId()
String getAvatarId()
Conversation.getAvatarId()
ConversationBuilder avatarId(String avatarId)
avatarId
- the optional information for the avatar of this conversationString getOwnerId()
ConversationBuilder ownerId(String ownerId)
String getAssigneeId()
ConversationBuilder assigneeId(String assigneeId)
String getAssignedGroupId()
ConversationBuilder assignedGroupId(String assignedGroupId)
ConversationBuilder participants(Set<String> participants)
ConversationBuilder addParticipant(String participant)
ConversationBuilder candidateGroups(Set<String> candidateGroups)
ConversationBuilder addCandidateGroup(String candidateGroup)
ConversationBuilder tags(Collection<String> tags)
ConversationBuilder addTag(String tag)
ConversationBuilder tenantId(String tenantId)
String getTenantId()
Conversation start()
@Deprecated Conversation startWithPermissionCheck(String userId)
startWithPermissionCheck(String, Collection, String)
insteadstart()
with an additional permission check that the user with userId
is allowed to create the conversation.userId
- the id of the user that is creating the conversationorg.flowable.common.engine.api.FlowableForbiddenException
- if the user with userId
does not have rights to create the conversationstart()
Conversation startWithPermissionCheck(String userId, Collection<String> userGroupKeys, String userTenantId)
start()
with an additional permission check that the user with userId
is allowed to create the conversation.userId
- the id of the user that is creating the conversationuserGroupKeys
- the group keys of the user that is creating the conversationuserTenantId
- the tenant id of the user that is creating the conversationorg.flowable.common.engine.api.FlowableForbiddenException
- if the user with userId
does not have rights to create the conversationstart()
ConversationHolder startWithReuse()
@Deprecated ConversationHolder startWithReuseAndPermissionCheck(String userId)
startWithPermissionCheck(String, Collection, String)
insteadstartWithReuse()
with an additional permission check that the user with userId
is allowed to create the conversation.userId
- the id of the user that is creating the conversationorg.flowable.common.engine.api.FlowableForbiddenException
- if the user with userId
does not have rights to create the conversationConversationHolder startWithReuseAndPermissionCheck(String userId, Collection<String> userGroupKeys, String userTenantId)
startWithReuse()
with an additional permission check that the user with userId
is allowed to create the conversation.userId
- the id of the user that is creating the conversationuserGroupKeys
- the group keys of the user that is creating the conversationuserTenantId
- the tenant id of the user that is creating the conversationorg.flowable.common.engine.api.FlowableForbiddenException
- if the user with userId
does not have rights to create the conversationCopyright © 2019. All rights reserved.