Class ConversationEntityImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntity
com.flowable.engage.engine.impl.persistence.entity.AbstractEngageEngineEntity
com.flowable.engage.engine.impl.persistence.entity.ConversationEntityImpl
- All Implemented Interfaces:
Permissions
,Taggable
,Conversation
,ConversationEntity
,HasRevision
,Entity
public class ConversationEntityImpl
extends AbstractEngageEngineEntity
implements ConversationEntity
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected Date
protected String
protected String
protected String
protected String
protected List<IdentityLinkEntity>
The identity links for the conversation.protected boolean
protected String
protected Date
protected String
protected String
protected String
protected Integer
protected List<VariableInstanceEntity>
protected String
protected String
protected String
protected Date
protected String
protected String
protected String
protected String
protected String
protected Date
protected Collection<String>
protected boolean
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the id of the assigned group of this object.Returns the id of the assignee of this conversation.Returns the optional avatar info, if this conversation has an avatar attached.Returns a set view of the optional list of candidate group ids of this conversation.Returns a set view of the optional list of candidate user ids of this conversation.The definition id of the conversation definition typeReturns the conversation variables when used within a conversation query with the include variables method invoked.Returns the creation timestamp of this conversation.Returns the id of the user creating this conversation.Returns the optional description for this conversation, containing the means of its discussed topics, any global notes or whatever is necessary as a global overview of the conversation.If the conversation was created from an external system, this optional external id might be used to map to that external conversation id, if necessary.The fallback that needs to be used in caseConversation.getName()
is not set.Returns the identity links.Returns the joining type of this conversation which defines on how new participants might join the running conversation.The time when the last message of the conversation has ben sent.A conversation can have additional meta information, most likely describing the conversation behavior in more detail.getName()
Returns the optional name of this conversation, most likely representing the main topic of the conversation.Returns the id of the owner of this conversation, most likely representing the user actually creating it or being created as part of an operation that user executed.Returns the optional parent id of this conversation, if any, which represents another work item, the parent for this conversation (might be another conversation object or any other work item this conversation is attached to).Returns the permission type for this conversation which is used to drive the permissions for messages and events sent to this conversation.Returns the optional priority of this conversation which can be used for sorting or other means.Getter used by MyBatis when querying conversation with identity links.Getter used by MyBatis when querying conversation with variables.The definition id of the scoped entity (for example Task Definition id, Case Definition Id, etc)An id of the scoped linked entity (for example Task, Case, etc)The type of the scoped linked entityReturns the optional resubmission time for this conversation.getState()
Returns the state of this conversation.Returns the sub type of this conversation.getTags()
Returns the optional list of tags for this object.Returns the id of the tenant this conversation belongs to.getType()
Returns the type of this conversation.Returns the id of the user updating this conversation.Returns the timestamp of the last update of this conversation, which is the case if anything has changed in the conversation itself or if there was a message posted to this conversation.The id of the user account that is linked with this conversation.The ids of the user accounts that are linked with this conversation.boolean
isPinned()
Returns true, if this conversation is pinned by the current user.Returns true, if this conversation is starred by the current user.boolean
void
setAvatarId
(String avatarId) void
setConversationDefinitionId
(String conversationDefinitionId) void
setCreationTime
(Date creationTime) void
setCreatorId
(String creatorId) void
setDescription
(String description) void
setExternalId
(String externalId) void
setFallbackName
(String fallbackName) void
setIdentityLinks
(List<IdentityLinkEntity> identityLinks) void
setJoiningType
(String joiningType) void
setLastMessageTime
(Date lastMessageTime) void
setMetaData
(Map<String, Object> metaData) void
void
setParentId
(String parentId) void
setPermissionType
(String permissionType) void
setPriority
(Integer priority) void
setQueryIdentityLinks
(List<IdentityLinkEntity> identityLinks) Setter used by MyBatis when querying conversation with identity links.void
setQueryVariables
(List<VariableInstanceEntity> queryVariables) Setter used by MyBatis when querying conversation with variables.void
setReferenceDefinitionId
(String referenceDefinitionId) void
setReferenceId
(String referenceId) void
setReferenceType
(String referenceType) void
setResubmissionTime
(Date resubmissionTime) void
void
setSubType
(String subType) void
void
setTenantId
(String tenantId) void
void
setUpdaterId
(String updaterId) void
setUpdateTime
(Date updateTime) void
setUserAccountIds
(Collection<String> userAccountIds) Methods inherited from class com.flowable.engage.engine.impl.persistence.entity.AbstractEngageEngineEntity
getIdPrefix
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.flowable.engage.conversation.api.Conversation
getId
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdated
Methods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
Field Details
-
externalId
-
tenantId
-
parentId
-
referenceId
-
referenceType
-
referenceDefinitionId
-
conversationDefinitionId
-
state
-
type
-
subType
-
permissionType
-
joiningType
-
priority
-
name
-
fallbackName
-
description
-
avatarId
-
creationTime
-
creatorId
-
updateTime
-
updaterId
-
resubmissionTime
-
lastMessageTime
-
userAccountIds
-
metaData
-
identityLinksInitialized
protected boolean identityLinksInitialized -
identityLinks
The identity links for the conversation. Make sure that it is not set otherwise MyBatis won't invoke the setter. -
variablesInitialized
protected boolean variablesInitialized -
queryVariables
-
tags
-
-
Constructor Details
-
ConversationEntityImpl
public ConversationEntityImpl()
-
-
Method Details
-
getExternalId
Description copied from interface:Conversation
If the conversation was created from an external system, this optional external id might be used to map to that external conversation id, if necessary.- Specified by:
getExternalId
in interfaceConversation
- Returns:
- the optional external id of this conversation
-
setExternalId
- Specified by:
setExternalId
in interfaceConversationEntity
-
getTenantId
Description copied from interface:Conversation
Returns the id of the tenant this conversation belongs to.- Specified by:
getTenantId
in interfaceConversation
- Returns:
- the tenant id
-
setTenantId
- Specified by:
setTenantId
in interfaceConversationEntity
-
getParentId
Description copied from interface:Conversation
Returns the optional parent id of this conversation, if any, which represents another work item, the parent for this conversation (might be another conversation object or any other work item this conversation is attached to).- Specified by:
getParentId
in interfaceConversation
- Returns:
- the optional parent work item id
-
setParentId
- Specified by:
setParentId
in interfaceConversationEntity
-
getReferenceId
Description copied from interface:Conversation
An id of the scoped linked entity (for example Task, Case, etc)- Specified by:
getReferenceId
in interfaceConversation
- Returns:
- the id of the scoped entity
-
setReferenceId
- Specified by:
setReferenceId
in interfaceConversationEntity
-
getReferenceType
Description copied from interface:Conversation
The type of the scoped linked entity- Specified by:
getReferenceType
in interfaceConversation
- Returns:
- the type of the scoped linked entity
-
setReferenceType
- Specified by:
setReferenceType
in interfaceConversationEntity
-
getReferenceDefinitionId
Description copied from interface:Conversation
The definition id of the scoped entity (for example Task Definition id, Case Definition Id, etc)- Specified by:
getReferenceDefinitionId
in interfaceConversation
- Returns:
- the definition id of the scoped entity
-
setReferenceDefinitionId
- Specified by:
setReferenceDefinitionId
in interfaceConversationEntity
-
getConversationDefinitionId
Description copied from interface:Conversation
The definition id of the conversation definition type- Specified by:
getConversationDefinitionId
in interfaceConversation
- Returns:
- the definition id of the conversation definition
-
setConversationDefinitionId
- Specified by:
setConversationDefinitionId
in interfaceConversationEntity
-
getState
Description copied from interface:Conversation
Returns the state of this conversation.- Specified by:
getState
in interfaceConversation
- Returns:
- the state of this conversation
-
setState
- Specified by:
setState
in interfaceConversationEntity
-
getType
Description copied from interface:Conversation
Returns the type of this conversation. SeeConversationTypes
.- Specified by:
getType
in interfaceConversation
- Returns:
- the type of this conversation
-
setType
- Specified by:
setType
in interfaceConversationEntity
-
getSubType
Description copied from interface:Conversation
Returns the sub type of this conversation. The sub type might be used for filtering or even driving some of the behavior of the conversation, its participants and messages.- Specified by:
getSubType
in interfaceConversation
- Returns:
- the sub type of this conversation
-
setSubType
- Specified by:
setSubType
in interfaceConversationEntity
-
getPermissionType
Description copied from interface:Conversation
Returns the permission type for this conversation which is used to drive the permissions for messages and events sent to this conversation.- Specified by:
getPermissionType
in interfaceConversation
- Returns:
- the permission type for this conversation
-
setPermissionType
- Specified by:
setPermissionType
in interfaceConversationEntity
-
getJoiningType
Description copied from interface:Conversation
Returns the joining type of this conversation which defines on how new participants might join the running conversation.- Specified by:
getJoiningType
in interfaceConversation
- Returns:
- the joining type of this conversation
-
setJoiningType
- Specified by:
setJoiningType
in interfaceConversationEntity
-
getPriority
Description copied from interface:Conversation
Returns the optional priority of this conversation which can be used for sorting or other means.- Specified by:
getPriority
in interfaceConversation
- Returns:
- the priority of this conversation
-
setPriority
- Specified by:
setPriority
in interfaceConversationEntity
-
isPinned
Description copied from interface:Conversation
Returns true, if this conversation is pinned by the current user. If there is no current user id available or the list of pinned user ids is not available, this method might returnnull
.- Specified by:
isPinned
in interfaceConversation
- Returns:
true
if this conversation is pinned by the current user,false
if it is not pinned by the current user,null
if pinning for the current user cannot be determined
-
isStarred
Description copied from interface:Conversation
Returns true, if this conversation is starred by the current user. If there is no current user id available or the list of starred user ids is not available, this method might returnnull
.- Specified by:
isStarred
in interfaceConversation
- Returns:
true
if this conversation is starred by the current user,false
if it is not starred by the current user,null
if starring for the current user cannot be determined
-
getName
Description copied from interface:Conversation
Returns the optional name of this conversation, most likely representing the main topic of the conversation.- Specified by:
getName
in interfaceConversation
- Returns:
- the name of this conversation, might be
null
-
setName
- Specified by:
setName
in interfaceConversationEntity
-
getFallbackName
Description copied from interface:Conversation
The fallback that needs to be used in caseConversation.getName()
is not set.- Specified by:
getFallbackName
in interfaceConversation
- Returns:
- the fallback name that needs to be used
-
setFallbackName
- Specified by:
setFallbackName
in interfaceConversationEntity
-
getDescription
Description copied from interface:Conversation
Returns the optional description for this conversation, containing the means of its discussed topics, any global notes or whatever is necessary as a global overview of the conversation.- Specified by:
getDescription
in interfaceConversation
- Returns:
- the optional description for this conversation
-
setDescription
- Specified by:
setDescription
in interfaceConversationEntity
-
getAvatarId
Description copied from interface:Conversation
Returns the optional avatar info, if this conversation has an avatar attached.- Specified by:
getAvatarId
in interfaceConversation
- Returns:
- the optional avatar info
-
setAvatarId
- Specified by:
setAvatarId
in interfaceConversationEntity
-
getCreationTime
Description copied from interface:Conversation
Returns the creation timestamp of this conversation.- Specified by:
getCreationTime
in interfaceConversation
- Returns:
- the creation timestamp
-
setCreationTime
- Specified by:
setCreationTime
in interfaceConversationEntity
-
getCreatorId
Description copied from interface:Conversation
Returns the id of the user creating this conversation.- Specified by:
getCreatorId
in interfaceConversation
- Returns:
- the id of the creation user
-
setCreatorId
- Specified by:
setCreatorId
in interfaceConversationEntity
-
getUpdateTime
Description copied from interface:Conversation
Returns the timestamp of the last update of this conversation, which is the case if anything has changed in the conversation itself or if there was a message posted to this conversation.- Specified by:
getUpdateTime
in interfaceConversation
- Returns:
- the timestamp of the last update / modification conversation or one of its messages
-
setUpdateTime
- Specified by:
setUpdateTime
in interfaceConversationEntity
-
getUpdaterId
Description copied from interface:Conversation
Returns the id of the user updating this conversation.- Specified by:
getUpdaterId
in interfaceConversation
- Returns:
- the id of the updater user
-
setUpdaterId
- Specified by:
setUpdaterId
in interfaceConversationEntity
-
getResubmissionTime
Description copied from interface:Conversation
Returns the optional resubmission time for this conversation. Resubmit a conversation means to actually hide it until a given resubmission time where it will appear again as a regular conversation.- Specified by:
getResubmissionTime
in interfaceConversation
- Returns:
- the optional resubmission time of this conversation, might be null
-
setResubmissionTime
- Specified by:
setResubmissionTime
in interfaceConversationEntity
-
getLastMessageTime
Description copied from interface:Conversation
The time when the last message of the conversation has ben sent.- Specified by:
getLastMessageTime
in interfaceConversation
- Returns:
- the last message time of the conversation
-
setLastMessageTime
- Specified by:
setLastMessageTime
in interfaceConversationEntity
-
getUserAccountId
Description copied from interface:Conversation
The id of the user account that is linked with this conversation. This would usually mean that this conversation is an external conversation for the given user account. This method is here for backwards compatibility. If the conversation is linked with more than one user account it will throw an exception.- Specified by:
getUserAccountId
in interfaceConversation
- Returns:
- the id of the user account that this conversation is linked to
-
getUserAccountIds
Description copied from interface:Conversation
The ids of the user accounts that are linked with this conversation. This would usually mean that this conversation is an external conversation for the given user accounts.- Specified by:
getUserAccountIds
in interfaceConversation
- Returns:
- the ids of the user accounts that this conversation is linked to
-
setUserAccountIds
- Specified by:
setUserAccountIds
in interfaceConversationEntity
-
getMetaData
Description copied from interface:Conversation
A conversation can have additional meta information, most likely describing the conversation behavior in more detail. The meta data is stored as a JSON string within a single variable.- Specified by:
getMetaData
in interfaceConversation
- Returns:
- the optional map of meta information or
null
if this conversation does not have any meta data
-
setMetaData
- Specified by:
setMetaData
in interfaceConversationEntity
-
getIdentityLinks
Description copied from interface:Conversation
Returns the identity links.- Specified by:
getIdentityLinks
in interfaceConversation
- Specified by:
getIdentityLinks
in interfaceConversationEntity
-
setIdentityLinks
- Specified by:
setIdentityLinks
in interfaceConversationEntity
-
getQueryIdentityLinks
Getter used by MyBatis when querying conversation with identity links. -
setQueryIdentityLinks
Setter used by MyBatis when querying conversation with identity links. -
isIdentityLinksInitialized
public boolean isIdentityLinksInitialized()- Specified by:
isIdentityLinksInitialized
in interfaceConversationEntity
-
getOwnerId
Description copied from interface:Conversation
Returns the id of the owner of this conversation, most likely representing the user actually creating it or being created as part of an operation that user executed. Most likely the owner of a conversation is also given the access right to add and remove participants (depending on the permission type of the conversation).- Specified by:
getOwnerId
in interfaceConversation
- Specified by:
getOwnerId
in interfacePermissions
- Returns:
- the id of the user being the owner of this conversation
-
getAssigneeId
Description copied from interface:Conversation
Returns the id of the assignee of this conversation. In most cases, the assignee is not explicitly used and hence optional, but for some specific permission type cases, the assignee of a conversation might be given certain permissions to handle particular aspects of a conversation.- Specified by:
getAssigneeId
in interfaceConversation
- Specified by:
getAssigneeId
in interfacePermissions
- Returns:
- the optional id of the user being the assignee of the conversation
-
getAssignedGroupId
Description copied from interface:Permissions
Returns the id of the assigned group of this object. What the assigned group actually represents is up to the objects use cases and implementation.- Specified by:
getAssignedGroupId
in interfacePermissions
- Returns:
- the id of the optional assigned group
-
getCandidateUserIds
Description copied from interface:Conversation
Returns a set view of the optional list of candidate user ids of this conversation. In most cases, this list actually represents the participants of a conversation and messages / events within that conversation are sent to.- Specified by:
getCandidateUserIds
in interfaceConversation
- Specified by:
getCandidateUserIds
in interfacePermissions
- Returns:
- the optional list of candidate user ids attached to this conversation
-
getCandidateGroupIds
Description copied from interface:Conversation
Returns a set view of the optional list of candidate group ids of this conversation. Like with the list of candidate users, all users being at least a member of one of the candidate groups will also become participants of this conversation.- Specified by:
getCandidateGroupIds
in interfaceConversation
- Specified by:
getCandidateGroupIds
in interfacePermissions
- Returns:
- the optional list of candidate group ids attached to this conversation
-
isVariablesInitialized
public boolean isVariablesInitialized()- Specified by:
isVariablesInitialized
in interfaceConversationEntity
-
getConversationVariables
Description copied from interface:Conversation
Returns the conversation variables when used within a conversation query with the include variables method invoked. Otherwise an empty map is returned.- Specified by:
getConversationVariables
in interfaceConversation
- Returns:
- the variables linked to the conversation
-
getQueryVariables
Getter used by MyBatis when querying conversation with variables.- Specified by:
getQueryVariables
in interfaceConversationEntity
-
setQueryVariables
Setter used by MyBatis when querying conversation with variables.- Specified by:
setQueryVariables
in interfaceConversationEntity
-
getTags
Description copied from interface:Taggable
Returns the optional list of tags for this object. Tags might be used for different reasons, most likely for filtering and to have an impact on how the object might be rendered. -
setTags
- Specified by:
setTags
in interfaceConversationEntity
-
getPersistentState
- Specified by:
getPersistentState
in interfaceEntity
-