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
The default message implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Categoryprotected Stringprotected Dateprotected Stringprotected Stringprotected booleanprotected booleanprotected Stringprotected Stringprotected Stringprotected Collection<MessageAuditEntity>The message audits for the message.protected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected DateFields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe optional id of an action instance if this message is linked with one.Returns the category of this data object, which might be aCategory.MESSAGE,Category.EVENT,Category.ACTION.Returns the conversation id for this data object.Returns the creation timestamp of this data object.Returns the id of the user creating this data object.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.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.Returns the media type of the main content (e.g.The optional id of a media content id if this message is linked with one.The collection of the audits of this message, in arbitrary orderGetter used by MyBatis when querying messages with message audits.Returns the id of the recipient group of this message.Returns the id of the recipient user of this message.Returns a reference of another message used this one replies to.The id of the user that is the senderId of the message.Returns the sub type of this data object, defining the data object with more details than the main type.getTags()Returns the optional list of tags for this object.Returns the id of the tenant this data object belongs to.getType()Returns the main type of this data object.Returns the optional id of the user having last modified this data object, if any,nullotherwise.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.booleanbooleanReturnstrueif 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.booleanWhether 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) voidvoidsetTenantId(String tenantId) voidvoidsetUpdaterId(String updaterId) voidsetUpdateTime(Date updateTime) toString()Methods inherited from class com.flowable.engage.engine.impl.persistence.entity.AbstractEngageEngineEntity
getIdPrefixMethods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdatedMethods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
Field Details
-
isPrivate
protected boolean isPrivate -
sticky
protected boolean sticky -
tenantId
-
externalId
-
actionInstanceId
-
mediaContentId
-
conversationId
-
category
-
type
-
subType
-
mainContent
-
mainContentType
-
creationTime
-
updateTime
-
creatorId
-
updaterId
-
senderId
-
recipientId
-
recipientGroupId
-
tags
-
replyToMessageId
-
messageAuditsInitialized
protected boolean messageAuditsInitialized -
messageAudits
The message audits for the message. Make sure that it is not set otherwise MyBatis won't invoke the setter.
-
-
Constructor Details
-
MessageEntityImpl
public MessageEntityImpl()
-
-
Method Details
-
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
Description copied from interface:MessageReturns the id of the tenant this data object belongs to.- Specified by:
getTenantIdin interfaceMessage- Returns:
- the tenant id
-
setTenantId
- Specified by:
setTenantIdin interfaceMessageEntity
-
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
- Specified by:
setExternalIdin interfaceMessageEntity
-
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
- Specified by:
setActionInstanceIdin interfaceMessageEntity
-
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
- Specified by:
setMediaContentIdin interfaceMessageEntity
-
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
- Specified by:
setConversationIdin interfaceMessageEntity
-
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
- Specified by:
setCategoryin interfaceMessageEntity
-
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
- Specified by:
setTypein interfaceMessageEntity
-
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
- Specified by:
setSubTypein interfaceMessageEntity
-
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
- Specified by:
setMainContentin interfaceMessageEntity
-
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
- Specified by:
setMainContentTypein interfaceMessageEntity
-
getCreationTime
Description copied from interface:MessageReturns the creation timestamp of this data object.- Specified by:
getCreationTimein interfaceMessage- Returns:
- the creation timestamp
-
setCreationTime
- Specified by:
setCreationTimein interfaceMessageEntity
-
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
- Specified by:
setUpdateTimein interfaceMessageEntity
-
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
- Specified by:
setCreatorIdin interfaceMessageEntity
-
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
- Specified by:
setUpdaterIdin interfaceMessageEntity
-
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
- Specified by:
setSenderIdin interfaceMessageEntity
-
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
- Specified by:
setRecipientIdin interfaceMessageEntity
-
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
- Specified by:
setRecipientGroupIdin interfaceMessageEntity
-
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
- 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
- Specified by:
setReplyToMessageIdin interfaceMessageEntity
-
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
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
- Specified by:
setMessageAuditsin interfaceMessageEntity
-
getQueryMessageAudits
Getter used by MyBatis when querying messages with message audits. -
setQueryMessageAudits
Setter used by MyBatis when querying messages with message audits. -
getPersistentState
- Specified by:
getPersistentStatein interfaceEntity
-
toString
-