public class MessageEntityImpl extends AbstractEngageEngineEntity implements MessageEntity
Modifier and Type | Field and Description |
---|---|
protected String |
actionInstanceId |
protected Category |
category |
protected String |
conversationId |
protected Date |
creationTime |
protected String |
creatorId |
protected String |
externalId |
protected boolean |
hidden |
protected boolean |
isPrivate |
protected String |
mainContent |
protected String |
mainContentType |
protected String |
mediaContentId |
protected Collection<MessageAuditEntity> |
messageAudits
The message audits for the message.
|
protected boolean |
messageAuditsInitialized |
protected String |
recipientGroupId |
protected String |
recipientId |
protected String |
referenceId |
protected String |
referenceType |
protected String |
replyToMessageId |
protected String |
senderId |
protected boolean |
sticky |
protected String |
subType |
protected List<String> |
tags |
protected String |
tenantId |
protected String |
type |
protected String |
updaterId |
protected Date |
updateTime |
Constructor and Description |
---|
MessageEntityImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getActionInstanceId()
The optional id of an action instance if this message is linked with one.
|
Category |
getCategory()
Returns the category of this data object, which might be a
Category.MESSAGE , Category.EVENT ,
Category.ACTION . |
String |
getConversationId()
Returns the conversation id for this data object.
|
Date |
getCreationTime()
Returns the creation timestamp of this data object.
|
String |
getCreatorId()
Returns the id of the user creating this data object.
|
String |
getExternalId()
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.
|
String |
getMainContent()
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.
|
String |
getMainContentType()
Returns the media type of the main content (e.g.
|
String |
getMediaContentId()
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 order
|
Object |
getPersistentState() |
Collection<MessageAuditEntity> |
getQueryMessageAudits()
Getter used by MyBatis when querying messages with message audits.
|
String |
getRecipientGroupId()
Returns the id of the recipient group of this message.
|
String |
getRecipientId()
Returns the id of the recipient user of this message.
|
String |
getReferenceId()
A reference id of the message (e.g.
|
String |
getReferenceType()
The type of the reference.
|
String |
getReplyToMessageId()
Returns a reference of another message used this one replies to.
|
String |
getSenderId()
The id of the user that is the senderId of the message.
|
String |
getSubType()
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.
|
String |
getTenantId()
Returns the id of the tenant this data object belongs to.
|
String |
getType()
Returns the main type of this data object.
|
String |
getUpdaterId()
Returns the optional id of the user having last modified this data object, if any,
null otherwise. |
Date |
getUpdateTime()
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 be
null . |
boolean |
isHidden()
A flag indicating whether a message should be hidden (i.e.
|
boolean |
isMessageAuditsInitialized() |
boolean |
isPrivate()
Returns
true if this is a private data object with a explicit and specific set of permissions other
than its parent (source). |
boolean |
isSticky()
Returns
true if this is a sticky data object, false (or null for a default, regular
data object, most likely ordered around the value or update timestamp. |
boolean |
isTemporary()
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 |
setReferenceId(String referenceId) |
void |
setReferenceType(String referenceType) |
void |
setReplyToMessageId(String messageId) |
void |
setSenderId(String senderId) |
void |
setSticky(boolean sticky) |
void |
setSubType(String subType) |
void |
setTags(List<String> tags) |
void |
setTenantId(String tenantId) |
void |
setType(String type) |
void |
setUpdaterId(String updaterId) |
void |
setUpdateTime(Date updateTime) |
String |
toString() |
getIdPrefix
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
protected boolean isPrivate
protected boolean hidden
protected boolean sticky
protected String tenantId
protected String externalId
protected String referenceId
protected String referenceType
protected String actionInstanceId
protected String mediaContentId
protected String conversationId
protected Category category
protected String type
protected String subType
protected String mainContent
protected String mainContentType
protected Date creationTime
protected Date updateTime
protected String creatorId
protected String updaterId
protected String senderId
protected String recipientId
protected String recipientGroupId
protected String replyToMessageId
protected boolean messageAuditsInitialized
protected Collection<MessageAuditEntity> messageAudits
public boolean isPrivate()
Message
true
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 to false
if not provided explicitly.public void setPrivate(boolean isPrivate)
setPrivate
in interface MessageEntity
public boolean isHidden()
Message
public void setHidden(boolean hidden)
setHidden
in interface MessageEntity
public boolean isSticky()
Message
true
if this is a sticky data object, false
(or null
for a default, regular
data object, most likely ordered around the value or update timestamp. This is an optional flag and defaults to
false
if not provided explicitly.public void setSticky(boolean sticky)
setSticky
in interface MessageEntity
public String getTenantId()
Message
getTenantId
in interface Message
public void setTenantId(String tenantId)
setTenantId
in interface MessageEntity
public String getExternalId()
Message
getExternalId
in interface Message
public void setExternalId(String externalId)
setExternalId
in interface MessageEntity
public String getReferenceId()
Message
getReferenceId
in interface Message
public void setReferenceId(String referenceId)
setReferenceId
in interface MessageEntity
public String getReferenceType()
Message
getReferenceType
in interface Message
public void setReferenceType(String referenceType)
setReferenceType
in interface MessageEntity
public String getActionInstanceId()
Message
getActionInstanceId
in interface Message
public void setActionInstanceId(String actionInstanceId)
setActionInstanceId
in interface MessageEntity
public String getMediaContentId()
Message
getMediaContentId
in interface Message
public void setMediaContentId(String mediaContentId)
setMediaContentId
in interface MessageEntity
public String getConversationId()
Message
getConversationId
in interface Message
public void setConversationId(String conversationId)
setConversationId
in interface MessageEntity
public Category getCategory()
Message
Category.MESSAGE
, Category.EVENT
,
Category.ACTION
.getCategory
in interface Message
public void setCategory(Category category)
setCategory
in interface MessageEntity
public String getType()
Message
DataTypes
for default
types to be used.public void setType(String type)
setType
in interface MessageEntity
public String getSubType()
Message
DataSubTypes
for default sub types to be used.getSubType
in interface Message
public void setSubType(String subType)
setSubType
in interface MessageEntity
public String getMainContent()
Message
getMainContent
in interface Message
public void setMainContent(String mainContent)
setMainContent
in interface MessageEntity
public String getMainContentType()
Message
ContentTypes
for a list
of supported types. If not explicitly specified, it returns the default type, which is ContentTypes.MD
.getMainContentType
in interface Message
public void setMainContentType(String mainContentType)
setMainContentType
in interface MessageEntity
public Date getCreationTime()
Message
getCreationTime
in interface Message
public void setCreationTime(Date creationTime)
setCreationTime
in interface MessageEntity
public Date getUpdateTime()
Message
null
.getUpdateTime
in interface Message
public void setUpdateTime(Date updateTime)
setUpdateTime
in interface MessageEntity
public String getCreatorId()
Message
getCreatorId
in interface Message
public void setCreatorId(String creatorId)
setCreatorId
in interface MessageEntity
public String getUpdaterId()
Message
null
otherwise.getUpdaterId
in interface Message
public void setUpdaterId(String updaterId)
setUpdaterId
in interface MessageEntity
public String getSenderId()
Message
getSenderId
in interface Message
public void setSenderId(String senderId)
setSenderId
in interface MessageEntity
public String getRecipientId()
Message
getRecipientId
in interface Message
public void setRecipientId(String recipientId)
setRecipientId
in interface MessageEntity
public String getRecipientGroupId()
Message
getRecipientGroupId
in interface Message
public void setRecipientGroupId(String recipientGroupId)
setRecipientGroupId
in interface MessageEntity
public List<String> getTags()
Taggable
public void setTags(List<String> tags)
setTags
in interface MessageEntity
public boolean isTemporary()
Message
isTemporary
in interface Message
true
if this is a temporary message, false
otherwisepublic void setReplyToMessageId(String messageId)
setReplyToMessageId
in interface MessageEntity
public String getReplyToMessageId()
Message
getReplyToMessageId
in interface Message
public boolean isMessageAuditsInitialized()
isMessageAuditsInitialized
in interface MessageEntity
public Collection<MessageAuditEntity> getMessageAudits()
Message
getMessageAudits
in interface MessageEntity
getMessageAudits
in interface Message
public void setMessageAudits(Collection<MessageAuditEntity> messageAudits)
setMessageAudits
in interface MessageEntity
public Collection<MessageAuditEntity> getQueryMessageAudits()
public void setQueryMessageAudits(Collection<MessageAuditEntity> messageAudits)
public Object getPersistentState()
getPersistentState
in interface org.flowable.common.engine.impl.persistence.entity.Entity
Copyright © 2019. All rights reserved.