Class MessageEntityImpl

    • Field Detail

      • isPrivate

        protected boolean isPrivate
      • hidden

        protected boolean hidden
      • sticky

        protected boolean sticky
      • tenantId

        protected String tenantId
      • externalId

        protected String externalId
      • actionInstanceId

        protected String actionInstanceId
      • mediaContentId

        protected String mediaContentId
      • conversationId

        protected String conversationId
      • subType

        protected String subType
      • mainContent

        protected String mainContent
      • mainContentType

        protected String mainContentType
      • creationTime

        protected Date creationTime
      • updateTime

        protected Date updateTime
      • creatorId

        protected String creatorId
      • updaterId

        protected String updaterId
      • senderId

        protected String senderId
      • recipientId

        protected String recipientId
      • recipientGroupId

        protected String recipientGroupId
      • replyToMessageId

        protected String replyToMessageId
      • messageAuditsInitialized

        protected boolean messageAuditsInitialized
      • messageAudits

        protected Collection<MessageAuditEntity> messageAudits
        The message audits for the message. Make sure that it is not set otherwise MyBatis won't invoke the setter.
    • Constructor Detail

      • MessageEntityImpl

        public MessageEntityImpl()
    • Method Detail

      • isPrivate

        public boolean isPrivate()
        Description copied from interface: Message
        Returns 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.
        Specified by:
        isPrivate in interface Message
        Returns:
        true if this is a private data object with a specific set of permissions
      • isHidden

        public boolean isHidden()
        Description copied from interface: Message
        A flag indicating whether a message should be hidden (i.e. not sent when requested).
        Specified by:
        isHidden in interface Message
        Returns:
        true if this message is hidden
      • isSticky

        public boolean isSticky()
        Description copied from interface: Message
        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. This is an optional flag and defaults to false if not provided explicitly.
        Specified by:
        isSticky in interface Message
        Returns:
        true if this is a sticky data object
      • getTenantId

        public String getTenantId()
        Description copied from interface: Message
        Returns the id of the tenant this data object belongs to.
        Specified by:
        getTenantId in interface Message
        Returns:
        the tenant id
      • getExternalId

        public String 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 interface Message
        Returns:
        the optional external id of this data object
      • getActionInstanceId

        public String getActionInstanceId()
        Description copied from interface: Message
        The optional id of an action instance if this message is linked with one.
        Specified by:
        getActionInstanceId in interface Message
        Returns:
        the optional id of an action instance
      • getMediaContentId

        public String 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 interface Message
        Returns:
        the optional if of a media content
      • getConversationId

        public String getConversationId()
        Description copied from interface: Message
        Returns the conversation id for this data object.
        Specified by:
        getConversationId in interface Message
        Returns:
        the conversation id of the data object
      • getType

        public String 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. See DataTypes for default types to be used.
        Specified by:
        getType in interface Message
        Returns:
        the type of the data object
      • getSubType

        public String 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. See DataSubTypes for default sub types to be used.
        Specified by:
        getSubType in interface Message
        Returns:
        the sub type of the data object
      • getMainContent

        public String 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 interface Message
        Returns:
        the main content of this data object in a human readable way
      • getMainContentType

        public String getMainContentType()
        Description copied from interface: Message
        Returns the media type of the main content (e.g. 'MD', 'HTML' or 'PLAIN'). See ContentTypes for a list of supported types. If not explicitly specified, it returns the default type, which is ContentTypes.MD.
        Specified by:
        getMainContentType in interface Message
        Returns:
        the type of the main content
      • getCreationTime

        public Date getCreationTime()
        Description copied from interface: Message
        Returns the creation timestamp of this data object.
        Specified by:
        getCreationTime in interface Message
        Returns:
        the creation timestamp
      • getUpdateTime

        public Date 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 be null.
        Specified by:
        getUpdateTime in interface Message
        Returns:
        the timestamp of the last update / modification of this data object
      • getCreatorId

        public String getCreatorId()
        Description copied from interface: Message
        Returns the id of the user creating this data object.
        Specified by:
        getCreatorId in interface Message
        Returns:
        the id of the creation user
      • getUpdaterId

        public String 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 interface Message
        Returns:
        the optional id of the user having last updated this data object
      • getSenderId

        public String getSenderId()
        Description copied from interface: Message
        The id of the user that is the senderId of the message.
        Specified by:
        getSenderId in interface Message
        Returns:
        the id of the senderId
      • getRecipientId

        public String 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 interface Message
        Returns:
        the id of recipient user
      • getRecipientGroupId

        public String 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 interface Message
        Returns:
        the id of recipient group
      • getTags

        public List<String> 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.
        Specified by:
        getTags in interface Taggable
        Returns:
        the optional list of tags, might be null or empty
      • isTemporary

        public boolean isTemporary()
        Description copied from interface: Message
        Whether this message is a temporary message.
        Specified by:
        isTemporary in interface Message
        Returns:
        true if this is a temporary message, false otherwise
      • getReplyToMessageId

        public String getReplyToMessageId()
        Description copied from interface: Message
        Returns a reference of another message used this one replies to.
        Specified by:
        getReplyToMessageId in interface Message
        Returns:
        the id of the message being replied
      • getQueryMessageAudits

        public Collection<MessageAuditEntity> getQueryMessageAudits()
        Getter used by MyBatis when querying messages with message audits.
      • setQueryMessageAudits

        public void setQueryMessageAudits​(Collection<MessageAuditEntity> messageAudits)
        Setter used by MyBatis when querying messages with message audits.