Class MessageEntityImpl
- 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.MessageEntityImpl
-
- All Implemented Interfaces:
Taggable,MessageEntity,Message,HasRevision,Entity
- Direct Known Subclasses:
TemporaryMessageEntityImpl
public class MessageEntityImpl extends AbstractEngageEngineEntity implements MessageEntity
The default message implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringactionInstanceIdprotected Categorycategoryprotected StringconversationIdprotected DatecreationTimeprotected StringcreatorIdprotected StringexternalIdprotected booleanhiddenprotected booleanisPrivateprotected StringmainContentprotected StringmainContentTypeprotected StringmediaContentIdprotected Collection<MessageAuditEntity>messageAuditsThe message audits for the message.protected booleanmessageAuditsInitializedprotected StringrecipientGroupIdprotected StringrecipientIdprotected StringreplyToMessageIdprotected StringsenderIdprotected booleanstickyprotected StringsubTypeprotected List<String>tagsprotected StringtenantIdprotected Stringtypeprotected StringupdaterIdprotected DateupdateTime-
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
-
Constructor Summary
Constructors Constructor Description MessageEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActionInstanceId()The optional id of an action instance if this message is linked with one.CategorygetCategory()Returns the category of this data object, which might be aCategory.MESSAGE,Category.EVENT,Category.ACTION.StringgetConversationId()Returns the conversation id for this data object.DategetCreationTime()Returns the creation timestamp of this data object.StringgetCreatorId()Returns the id of the user creating this data object.StringgetExternalId()If this data object was created from an external system, this optional external id might be used to map to that external data object id, if necessary.StringgetMainContent()Returns the main content for this data object, most likely just a mapping into a specific parameter within the payload or a combination of several values within the payload.StringgetMainContentType()Returns the media type of the main content (e.g.StringgetMediaContentId()The optional id of a media content id if this message is linked with one.Collection<MessageAuditEntity>getMessageAudits()The collection of the audits of this message, in arbitrary orderObjectgetPersistentState()Collection<MessageAuditEntity>getQueryMessageAudits()Getter used by MyBatis when querying messages with message audits.StringgetRecipientGroupId()Returns the id of the recipient group of this message.StringgetRecipientId()Returns the id of the recipient user of this message.StringgetReplyToMessageId()Returns a reference of another message used this one replies to.StringgetSenderId()The id of the user that is the senderId of the message.StringgetSubType()Returns the sub type of this data object, defining the data object with more details than the main type.List<String>getTags()Returns the optional list of tags for this object.StringgetTenantId()Returns the id of the tenant this data object belongs to.StringgetType()Returns the main type of this data object.StringgetUpdaterId()Returns the optional id of the user having last modified this data object, if any,nullotherwise.DategetUpdateTime()Returns the timestamp of the last update of this data object, in most cases where events are immutable, this timestamp is the same as the creation timestamp, but must never benull.booleanisHidden()A flag indicating whether a message should be hidden (i.e.booleanisMessageAuditsInitialized()booleanisPrivate()Returnstrueif this is a private data object with a explicit and specific set of permissions other than its parent (source).booleanisSticky()Returnstrueif this is a sticky data object,false(ornullfor a default, regular data object, most likely ordered around the value or update timestamp.booleanisTemporary()Whether this message is a temporary message.voidsetActionInstanceId(String actionInstanceId)voidsetCategory(Category category)voidsetConversationId(String conversationId)voidsetCreationTime(Date creationTime)voidsetCreatorId(String creatorId)voidsetExternalId(String externalId)voidsetHidden(boolean hidden)voidsetMainContent(String mainContent)voidsetMainContentType(String mainContentType)voidsetMediaContentId(String mediaContentId)voidsetMessageAudits(Collection<MessageAuditEntity> messageAudits)voidsetPrivate(boolean isPrivate)voidsetQueryMessageAudits(Collection<MessageAuditEntity> messageAudits)Setter used by MyBatis when querying messages with message audits.voidsetRecipientGroupId(String recipientGroupId)voidsetRecipientId(String recipientId)voidsetReplyToMessageId(String messageId)voidsetSenderId(String senderId)voidsetSticky(boolean sticky)voidsetSubType(String subType)voidsetTags(List<String> tags)voidsetTenantId(String tenantId)voidsetType(String type)voidsetUpdaterId(String updaterId)voidsetUpdateTime(Date updateTime)StringtoString()-
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, wait, wait, wait
-
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 Detail
-
isPrivate
protected boolean isPrivate
-
hidden
protected boolean hidden
-
sticky
protected boolean sticky
-
tenantId
protected String tenantId
-
externalId
protected String externalId
-
actionInstanceId
protected String actionInstanceId
-
mediaContentId
protected String mediaContentId
-
conversationId
protected String conversationId
-
category
protected Category category
-
type
protected String type
-
subType
protected String subType
-
mainContent
protected String mainContent
-
mainContentType
protected String mainContentType
-
creationTime
protected Date creationTime
-
updateTime
protected Date updateTime
-
creatorId
protected String creatorId
-
updaterId
protected String updaterId
-
senderId
protected String senderId
-
recipientId
protected String recipientId
-
recipientGroupId
protected String recipientGroupId
-
replyToMessageId
protected String replyToMessageId
-
messageAuditsInitialized
protected boolean messageAuditsInitialized
-
messageAudits
protected Collection<MessageAuditEntity> messageAudits
The message audits for the message. Make sure that it is not set otherwise MyBatis won't invoke the setter.
-
-
Method Detail
-
isPrivate
public boolean isPrivate()
Description copied from interface:MessageReturnstrueif this is a private data object with a explicit and specific set of permissions other than its parent (source). For instance if you want to send a private message to someone within a group conversation or channel, you can use the private mode and explicitly select the recipients of that data object. This is an optional flag and defaults tofalseif not provided explicitly.
-
setPrivate
public void setPrivate(boolean isPrivate)
- Specified by:
setPrivatein interfaceMessageEntity
-
isHidden
public boolean isHidden()
Description copied from interface:MessageA flag indicating whether a message should be hidden (i.e. not sent when requested).
-
setHidden
public void setHidden(boolean hidden)
- Specified by:
setHiddenin interfaceMessageEntity
-
isSticky
public boolean isSticky()
Description copied from interface:MessageReturnstrueif this is a sticky data object,false(ornullfor a default, regular data object, most likely ordered around the value or update timestamp. This is an optional flag and defaults tofalseif not provided explicitly.
-
setSticky
public void setSticky(boolean sticky)
- Specified by:
setStickyin interfaceMessageEntity
-
getTenantId
public String getTenantId()
Description copied from interface:MessageReturns the id of the tenant this data object belongs to.- Specified by:
getTenantIdin interfaceMessage- Returns:
- the tenant id
-
setTenantId
public void setTenantId(String tenantId)
- Specified by:
setTenantIdin interfaceMessageEntity
-
getExternalId
public String getExternalId()
Description copied from interface:MessageIf this data object was created from an external system, this optional external id might be used to map to that external data object id, if necessary.- Specified by:
getExternalIdin interfaceMessage- Returns:
- the optional external id of this data object
-
setExternalId
public void setExternalId(String externalId)
- Specified by:
setExternalIdin interfaceMessageEntity
-
getActionInstanceId
public String getActionInstanceId()
Description copied from interface:MessageThe optional id of an action instance if this message is linked with one.- Specified by:
getActionInstanceIdin interfaceMessage- Returns:
- the optional id of an action instance
-
setActionInstanceId
public void setActionInstanceId(String actionInstanceId)
- Specified by:
setActionInstanceIdin interfaceMessageEntity
-
getMediaContentId
public String getMediaContentId()
Description copied from interface:MessageThe optional id of a media content id if this message is linked with one.- Specified by:
getMediaContentIdin interfaceMessage- Returns:
- the optional if of a media content
-
setMediaContentId
public void setMediaContentId(String mediaContentId)
- Specified by:
setMediaContentIdin interfaceMessageEntity
-
getConversationId
public String getConversationId()
Description copied from interface:MessageReturns the conversation id for this data object.- Specified by:
getConversationIdin interfaceMessage- Returns:
- the conversation id of the data object
-
setConversationId
public void setConversationId(String conversationId)
- Specified by:
setConversationIdin interfaceMessageEntity
-
getCategory
public Category getCategory()
Description copied from interface:MessageReturns the category of this data object, which might be aCategory.MESSAGE,Category.EVENT,Category.ACTION.- Specified by:
getCategoryin interfaceMessage- Returns:
- the data object category
-
setCategory
public void setCategory(Category category)
- Specified by:
setCategoryin interfaceMessageEntity
-
getType
public String getType()
Description copied from interface:MessageReturns the main type of this data object. A lot of services or functions might be based on the type of a data object, so choose it carefully, if not using one of the predefined types. SeeDataTypesfor default types to be used.
-
setType
public void setType(String type)
- Specified by:
setTypein interfaceMessageEntity
-
getSubType
public String getSubType()
Description copied from interface:MessageReturns the sub type of this data object, defining the data object with more details than the main type. SeeDataSubTypesfor default sub types to be used.- Specified by:
getSubTypein interfaceMessage- Returns:
- the sub type of the data object
-
setSubType
public void setSubType(String subType)
- Specified by:
setSubTypein interfaceMessageEntity
-
getMainContent
public String getMainContent()
Description copied from interface:MessageReturns the main content for this data object, most likely just a mapping into a specific parameter within the payload or a combination of several values within the payload. The main content is typically used whenever a data object is rendered within a conversation it was sent to.- Specified by:
getMainContentin interfaceMessage- Returns:
- the main content of this data object in a human readable way
-
setMainContent
public void setMainContent(String mainContent)
- Specified by:
setMainContentin interfaceMessageEntity
-
getMainContentType
public String getMainContentType()
Description copied from interface:MessageReturns the media type of the main content (e.g. 'MD', 'HTML' or 'PLAIN'). SeeContentTypesfor a list of supported types. If not explicitly specified, it returns the default type, which isContentTypes.MD.- Specified by:
getMainContentTypein interfaceMessage- Returns:
- the type of the main content
-
setMainContentType
public void setMainContentType(String mainContentType)
- Specified by:
setMainContentTypein interfaceMessageEntity
-
getCreationTime
public Date getCreationTime()
Description copied from interface:MessageReturns the creation timestamp of this data object.- Specified by:
getCreationTimein interfaceMessage- Returns:
- the creation timestamp
-
setCreationTime
public void setCreationTime(Date creationTime)
- Specified by:
setCreationTimein interfaceMessageEntity
-
getUpdateTime
public Date getUpdateTime()
Description copied from interface:MessageReturns the timestamp of the last update of this data object, in most cases where events are immutable, this timestamp is the same as the creation timestamp, but must never benull.- Specified by:
getUpdateTimein interfaceMessage- Returns:
- the timestamp of the last update / modification of this data object
-
setUpdateTime
public void setUpdateTime(Date updateTime)
- Specified by:
setUpdateTimein interfaceMessageEntity
-
getCreatorId
public String getCreatorId()
Description copied from interface:MessageReturns the id of the user creating this data object.- Specified by:
getCreatorIdin interfaceMessage- Returns:
- the id of the creation user
-
setCreatorId
public void setCreatorId(String creatorId)
- Specified by:
setCreatorIdin interfaceMessageEntity
-
getUpdaterId
public String getUpdaterId()
Description copied from interface:MessageReturns the optional id of the user having last modified this data object, if any,nullotherwise.- Specified by:
getUpdaterIdin interfaceMessage- Returns:
- the optional id of the user having last updated this data object
-
setUpdaterId
public void setUpdaterId(String updaterId)
- Specified by:
setUpdaterIdin interfaceMessageEntity
-
getSenderId
public String getSenderId()
Description copied from interface:MessageThe id of the user that is the senderId of the message.- Specified by:
getSenderIdin interfaceMessage- Returns:
- the id of the senderId
-
setSenderId
public void setSenderId(String senderId)
- Specified by:
setSenderIdin interfaceMessageEntity
-
getRecipientId
public String getRecipientId()
Description copied from interface:MessageReturns the id of the recipient user of this message. This means that the message is private for the given user.- Specified by:
getRecipientIdin interfaceMessage- Returns:
- the id of recipient user
-
setRecipientId
public void setRecipientId(String recipientId)
- Specified by:
setRecipientIdin interfaceMessageEntity
-
getRecipientGroupId
public String getRecipientGroupId()
Description copied from interface:MessageReturns the id of the recipient group of this message. This means that the message is private for the given group.- Specified by:
getRecipientGroupIdin interfaceMessage- Returns:
- the id of recipient group
-
setRecipientGroupId
public void setRecipientGroupId(String recipientGroupId)
- Specified by:
setRecipientGroupIdin interfaceMessageEntity
-
getTags
public List<String> getTags()
Description copied from interface:TaggableReturns 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
public void setTags(List<String> tags)
- Specified by:
setTagsin interfaceMessageEntity
-
isTemporary
public boolean isTemporary()
Description copied from interface:MessageWhether this message is a temporary message.- Specified by:
isTemporaryin interfaceMessage- Returns:
trueif this is a temporary message,falseotherwise
-
setReplyToMessageId
public void setReplyToMessageId(String messageId)
- Specified by:
setReplyToMessageIdin interfaceMessageEntity
-
getReplyToMessageId
public String getReplyToMessageId()
Description copied from interface:MessageReturns a reference of another message used this one replies to.- Specified by:
getReplyToMessageIdin interfaceMessage- Returns:
- the id of the message being replied
-
isMessageAuditsInitialized
public boolean isMessageAuditsInitialized()
- Specified by:
isMessageAuditsInitializedin interfaceMessageEntity
-
getMessageAudits
public Collection<MessageAuditEntity> getMessageAudits()
Description copied from interface:MessageThe collection of the audits of this message, in arbitrary order- Specified by:
getMessageAuditsin interfaceMessage- Specified by:
getMessageAuditsin interfaceMessageEntity- Returns:
- the audits for this message, if they exist
-
setMessageAudits
public void setMessageAudits(Collection<MessageAuditEntity> messageAudits)
- Specified by:
setMessageAuditsin interfaceMessageEntity
-
getQueryMessageAudits
public Collection<MessageAuditEntity> getQueryMessageAudits()
Getter used by MyBatis when querying messages with message audits.
-
setQueryMessageAudits
public void setQueryMessageAudits(Collection<MessageAuditEntity> messageAudits)
Setter used by MyBatis when querying messages with message audits.
-
getPersistentState
public Object getPersistentState()
- Specified by:
getPersistentStatein interfaceEntity
-
-