public interface Message extends Taggable
| 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 |
getId()
The unique, technical id of this data object.
|
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<? extends MessageAudit> |
getMessageAudits()
The collection of the audits of this message, in arbitrary order
|
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.
|
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 |
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.
|
boolean isPrivate()
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.true if this is a private data object with a specific set of permissionsboolean isHidden()
true if this message is hiddenboolean isSticky()
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.true if this is a sticky data objectString getTenantId()
String getId()
String getExternalId()
String getReferenceId()
String getReferenceType()
String getActionInstanceId()
String getMediaContentId()
String getConversationId()
Category getCategory()
Category.MESSAGE, Category.EVENT,
Category.ACTION.String getType()
DataTypes for default
types to be used.String getSubType()
DataSubTypes for default sub types to be used.String getMainContent()
String getMainContentType()
ContentTypes for a list
of supported types. If not explicitly specified, it returns the default type, which is ContentTypes.MD.Date getCreationTime()
Date getUpdateTime()
null.String getCreatorId()
String getUpdaterId()
null otherwise.String getSenderId()
String getRecipientId()
String getRecipientGroupId()
boolean isTemporary()
true if this is a temporary message, false otherwiseString getReplyToMessageId()
Collection<? extends MessageAudit> getMessageAudits()
Copyright © 2019. All rights reserved.