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 String
protected Category
protected String
protected Date
protected String
protected String
protected boolean
protected boolean
protected String
protected String
protected String
protected Collection<MessageAuditEntity>
The message audits for the message.protected boolean
protected String
protected String
protected String
protected String
protected boolean
protected String
protected String
protected String
protected String
protected Date
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 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,null
otherwise.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
.boolean
isHidden()
A flag indicating whether a message should be hidden (i.e.boolean
boolean
Returnstrue
if this is a private data object with a explicit and specific set of permissions other than its parent (source).boolean
isSticky()
Returnstrue
if this is a sticky data object,false
(ornull
for a default, regular data object, most likely ordered around the value or update timestamp.boolean
Whether this message is a temporary message.void
setActionInstanceId
(String actionInstanceId) void
setCategory
(Category category) void
setConversationId
(String conversationId) void
setCreationTime
(Date creationTime) void
setCreatorId
(String creatorId) void
setExternalId
(String externalId) void
setHidden
(boolean hidden) void
setMainContent
(String mainContent) void
setMainContentType
(String mainContentType) void
setMediaContentId
(String mediaContentId) void
setMessageAudits
(Collection<MessageAuditEntity> messageAudits) void
setPrivate
(boolean isPrivate) void
setQueryMessageAudits
(Collection<MessageAuditEntity> messageAudits) Setter used by MyBatis when querying messages with message audits.void
setRecipientGroupId
(String recipientGroupId) void
setRecipientId
(String recipientId) void
setReplyToMessageId
(String messageId) void
setSenderId
(String senderId) void
setSticky
(boolean sticky) void
setSubType
(String subType) void
void
setTenantId
(String tenantId) void
void
setUpdaterId
(String updaterId) void
setUpdateTime
(Date updateTime) toString()
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 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:Message
Returnstrue
if 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 tofalse
if not provided explicitly. -
setPrivate
public void setPrivate(boolean isPrivate) - Specified by:
setPrivate
in interfaceMessageEntity
-
isHidden
public boolean isHidden()Description copied from interface:Message
A flag indicating whether a message should be hidden (i.e. not sent when requested). -
setHidden
public void setHidden(boolean hidden) - Specified by:
setHidden
in interfaceMessageEntity
-
isSticky
public boolean isSticky()Description copied from interface:Message
Returnstrue
if this is a sticky data object,false
(ornull
for a default, regular data object, most likely ordered around the value or update timestamp. This is an optional flag and defaults tofalse
if not provided explicitly. -
setSticky
public void setSticky(boolean sticky) - Specified by:
setSticky
in interfaceMessageEntity
-
getTenantId
Description copied from interface:Message
Returns the id of the tenant this data object belongs to.- Specified by:
getTenantId
in interfaceMessage
- Returns:
- the tenant id
-
setTenantId
- Specified by:
setTenantId
in interfaceMessageEntity
-
getExternalId
Description copied from interface:Message
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.- Specified by:
getExternalId
in interfaceMessage
- Returns:
- the optional external id of this data object
-
setExternalId
- Specified by:
setExternalId
in interfaceMessageEntity
-
getActionInstanceId
Description copied from interface:Message
The optional id of an action instance if this message is linked with one.- Specified by:
getActionInstanceId
in interfaceMessage
- Returns:
- the optional id of an action instance
-
setActionInstanceId
- Specified by:
setActionInstanceId
in interfaceMessageEntity
-
getMediaContentId
Description copied from interface:Message
The optional id of a media content id if this message is linked with one.- Specified by:
getMediaContentId
in interfaceMessage
- Returns:
- the optional if of a media content
-
setMediaContentId
- Specified by:
setMediaContentId
in interfaceMessageEntity
-
getConversationId
Description copied from interface:Message
Returns the conversation id for this data object.- Specified by:
getConversationId
in interfaceMessage
- Returns:
- the conversation id of the data object
-
setConversationId
- Specified by:
setConversationId
in interfaceMessageEntity
-
getCategory
Description copied from interface:Message
Returns the category of this data object, which might be aCategory.MESSAGE
,Category.EVENT
,Category.ACTION
.- Specified by:
getCategory
in interfaceMessage
- Returns:
- the data object category
-
setCategory
- Specified by:
setCategory
in interfaceMessageEntity
-
getType
Description copied from interface:Message
Returns 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. SeeDataTypes
for default types to be used. -
setType
- Specified by:
setType
in interfaceMessageEntity
-
getSubType
Description copied from interface:Message
Returns the sub type of this data object, defining the data object with more details than the main type. SeeDataSubTypes
for default sub types to be used.- Specified by:
getSubType
in interfaceMessage
- Returns:
- the sub type of the data object
-
setSubType
- Specified by:
setSubType
in interfaceMessageEntity
-
getMainContent
Description copied from interface:Message
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. The main content is typically used whenever a data object is rendered within a conversation it was sent to.- Specified by:
getMainContent
in interfaceMessage
- Returns:
- the main content of this data object in a human readable way
-
setMainContent
- Specified by:
setMainContent
in interfaceMessageEntity
-
getMainContentType
Description copied from interface:Message
Returns the media type of the main content (e.g. 'MD', 'HTML' or 'PLAIN'). SeeContentTypes
for a list of supported types. If not explicitly specified, it returns the default type, which isContentTypes.MD
.- Specified by:
getMainContentType
in interfaceMessage
- Returns:
- the type of the main content
-
setMainContentType
- Specified by:
setMainContentType
in interfaceMessageEntity
-
getCreationTime
Description copied from interface:Message
Returns the creation timestamp of this data object.- Specified by:
getCreationTime
in interfaceMessage
- Returns:
- the creation timestamp
-
setCreationTime
- Specified by:
setCreationTime
in interfaceMessageEntity
-
getUpdateTime
Description copied from interface:Message
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
.- Specified by:
getUpdateTime
in interfaceMessage
- Returns:
- the timestamp of the last update / modification of this data object
-
setUpdateTime
- Specified by:
setUpdateTime
in interfaceMessageEntity
-
getCreatorId
Description copied from interface:Message
Returns the id of the user creating this data object.- Specified by:
getCreatorId
in interfaceMessage
- Returns:
- the id of the creation user
-
setCreatorId
- Specified by:
setCreatorId
in interfaceMessageEntity
-
getUpdaterId
Description copied from interface:Message
Returns the optional id of the user having last modified this data object, if any,null
otherwise.- Specified by:
getUpdaterId
in interfaceMessage
- Returns:
- the optional id of the user having last updated this data object
-
setUpdaterId
- Specified by:
setUpdaterId
in interfaceMessageEntity
-
getSenderId
Description copied from interface:Message
The id of the user that is the senderId of the message.- Specified by:
getSenderId
in interfaceMessage
- Returns:
- the id of the senderId
-
setSenderId
- Specified by:
setSenderId
in interfaceMessageEntity
-
getRecipientId
Description copied from interface:Message
Returns the id of the recipient user of this message. This means that the message is private for the given user.- Specified by:
getRecipientId
in interfaceMessage
- Returns:
- the id of recipient user
-
setRecipientId
- Specified by:
setRecipientId
in interfaceMessageEntity
-
getRecipientGroupId
Description copied from interface:Message
Returns the id of the recipient group of this message. This means that the message is private for the given group.- Specified by:
getRecipientGroupId
in interfaceMessage
- Returns:
- the id of recipient group
-
setRecipientGroupId
- Specified by:
setRecipientGroupId
in interfaceMessageEntity
-
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 interfaceMessageEntity
-
isTemporary
public boolean isTemporary()Description copied from interface:Message
Whether this message is a temporary message.- Specified by:
isTemporary
in interfaceMessage
- Returns:
true
if this is a temporary message,false
otherwise
-
setReplyToMessageId
- Specified by:
setReplyToMessageId
in interfaceMessageEntity
-
getReplyToMessageId
Description copied from interface:Message
Returns a reference of another message used this one replies to.- Specified by:
getReplyToMessageId
in interfaceMessage
- Returns:
- the id of the message being replied
-
isMessageAuditsInitialized
public boolean isMessageAuditsInitialized()- Specified by:
isMessageAuditsInitialized
in interfaceMessageEntity
-
getMessageAudits
Description copied from interface:Message
The collection of the audits of this message, in arbitrary order- Specified by:
getMessageAudits
in interfaceMessage
- Specified by:
getMessageAudits
in interfaceMessageEntity
- Returns:
- the audits for this message, if they exist
-
setMessageAudits
- Specified by:
setMessageAudits
in 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:
getPersistentState
in interfaceEntity
-
toString
-