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() |
getIdPrefixgetId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdatedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected 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()
Messagetrue 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 MessageEntitypublic boolean isHidden()
Messagepublic void setHidden(boolean hidden)
setHidden in interface MessageEntitypublic boolean isSticky()
Messagetrue 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 MessageEntitypublic String getTenantId()
MessagegetTenantId in interface Messagepublic void setTenantId(String tenantId)
setTenantId in interface MessageEntitypublic String getExternalId()
MessagegetExternalId in interface Messagepublic void setExternalId(String externalId)
setExternalId in interface MessageEntitypublic String getReferenceId()
MessagegetReferenceId in interface Messagepublic void setReferenceId(String referenceId)
setReferenceId in interface MessageEntitypublic String getReferenceType()
MessagegetReferenceType in interface Messagepublic void setReferenceType(String referenceType)
setReferenceType in interface MessageEntitypublic String getActionInstanceId()
MessagegetActionInstanceId in interface Messagepublic void setActionInstanceId(String actionInstanceId)
setActionInstanceId in interface MessageEntitypublic String getMediaContentId()
MessagegetMediaContentId in interface Messagepublic void setMediaContentId(String mediaContentId)
setMediaContentId in interface MessageEntitypublic String getConversationId()
MessagegetConversationId in interface Messagepublic void setConversationId(String conversationId)
setConversationId in interface MessageEntitypublic Category getCategory()
MessageCategory.MESSAGE, Category.EVENT,
Category.ACTION.getCategory in interface Messagepublic void setCategory(Category category)
setCategory in interface MessageEntitypublic String getType()
MessageDataTypes for default
types to be used.public void setType(String type)
setType in interface MessageEntitypublic String getSubType()
MessageDataSubTypes for default sub types to be used.getSubType in interface Messagepublic void setSubType(String subType)
setSubType in interface MessageEntitypublic String getMainContent()
MessagegetMainContent in interface Messagepublic void setMainContent(String mainContent)
setMainContent in interface MessageEntitypublic String getMainContentType()
MessageContentTypes for a list
of supported types. If not explicitly specified, it returns the default type, which is ContentTypes.MD.getMainContentType in interface Messagepublic void setMainContentType(String mainContentType)
setMainContentType in interface MessageEntitypublic Date getCreationTime()
MessagegetCreationTime in interface Messagepublic void setCreationTime(Date creationTime)
setCreationTime in interface MessageEntitypublic Date getUpdateTime()
Messagenull.getUpdateTime in interface Messagepublic void setUpdateTime(Date updateTime)
setUpdateTime in interface MessageEntitypublic String getCreatorId()
MessagegetCreatorId in interface Messagepublic void setCreatorId(String creatorId)
setCreatorId in interface MessageEntitypublic String getUpdaterId()
Messagenull otherwise.getUpdaterId in interface Messagepublic void setUpdaterId(String updaterId)
setUpdaterId in interface MessageEntitypublic String getSenderId()
MessagegetSenderId in interface Messagepublic void setSenderId(String senderId)
setSenderId in interface MessageEntitypublic String getRecipientId()
MessagegetRecipientId in interface Messagepublic void setRecipientId(String recipientId)
setRecipientId in interface MessageEntitypublic String getRecipientGroupId()
MessagegetRecipientGroupId in interface Messagepublic void setRecipientGroupId(String recipientGroupId)
setRecipientGroupId in interface MessageEntitypublic List<String> getTags()
Taggablepublic void setTags(List<String> tags)
setTags in interface MessageEntitypublic boolean isTemporary()
MessageisTemporary in interface Messagetrue if this is a temporary message, false otherwisepublic void setReplyToMessageId(String messageId)
setReplyToMessageId in interface MessageEntitypublic String getReplyToMessageId()
MessagegetReplyToMessageId in interface Messagepublic boolean isMessageAuditsInitialized()
isMessageAuditsInitialized in interface MessageEntitypublic Collection<MessageAuditEntity> getMessageAudits()
MessagegetMessageAudits in interface MessageEntitygetMessageAudits in interface Messagepublic void setMessageAudits(Collection<MessageAuditEntity> messageAudits)
setMessageAudits in interface MessageEntitypublic Collection<MessageAuditEntity> getQueryMessageAudits()
public void setQueryMessageAudits(Collection<MessageAuditEntity> messageAudits)
public Object getPersistentState()
getPersistentState in interface org.flowable.common.engine.impl.persistence.entity.EntityCopyright © 2019. All rights reserved.