Class MessageAuditEntityImpl

    • Field Detail

      • messageId

        protected String messageId
      • mediaContentId

        protected String mediaContentId
      • conversationId

        protected String conversationId
      • mainContent

        protected String mainContent
      • mainContentType

        protected String mainContentType
      • creationTime

        protected Date creationTime
      • creatorId

        protected String creatorId
      • modifyTime

        protected Date modifyTime
      • modifierId

        protected String modifierId
    • Constructor Detail

      • MessageAuditEntityImpl

        public MessageAuditEntityImpl()
    • Method Detail

      • getMessageId

        public String getMessageId()
        Description copied from interface: MessageAudit
        The message id that this audit belongs to
        Specified by:
        getMessageId in interface MessageAudit
        Returns:
        the message id
      • getMediaContentId

        public String getMediaContentId()
        Description copied from interface: MessageAudit
        The id of the media content in this audit.
        Specified by:
        getMediaContentId in interface MessageAudit
        Returns:
        the optional id of a media content
      • getConversationId

        public String getConversationId()
        Description copied from interface: MessageAudit
        The id of the conversation that this media audit belongs to
        Specified by:
        getConversationId in interface MessageAudit
        Returns:
        the conversation id
      • getCreationTime

        public Date getCreationTime()
        Description copied from interface: MessageAudit
        The creation time of this version of the message. This would be either the creation time of a Message or the update time of a Message if the message is being changed multiple times.

        e.g.

        • User 1 creates a message at Time 1
        • User 2 edits the message at Time 2
        • User 3 edits the message again at Time 3

        There will be 2 message audit entries. With the following information:

        • creationTime: Time 1, modifyTime: Time 2
        • creationTime: Time 2, modifyTime: Time 3

        The Message.getUpdaterId() will have User 3

        Specified by:
        getCreationTime in interface MessageAudit
        Returns:
        the creation time of the message version
      • getCreatorId

        public String getCreatorId()
        Description copied from interface: MessageAudit
        The id of the user that created this version of the message. This would be either the creator of a Message or the updater of a Message if the message is being changed multiple times

        e.g.

        • User 1 creates a message
        • User 2 edits the message
        • User 3 edits the message again

        There will be 2 message audit entries. With the following information:

        • creatorId: User 1, modifierId: User 2
        • creatorId: User 2, modifierId: User 3

        The Message.getUpdaterId() will have User 3

        Specified by:
        getCreatorId in interface MessageAudit
        Returns:
        the id of the message version creator
      • getModifyTime

        public Date getModifyTime()
        Description copied from interface: MessageAudit
        The time of the modification.

        e.g.

        • User 1 creates a message at Time 1
        • User 2 edits the message at Time 2
        • User 3 edits the message again at Time 3

        There will be 2 message audit entries. With the following information:

        • creationTime: Time 1, modifyTime: Time 2
        • creationTime: Time 2, modifyTime: Time 3

        The Message.getUpdaterId() will have User 3

        Specified by:
        getModifyTime in interface MessageAudit
        Returns:
        the modification time
      • getModifierId

        public String getModifierId()
        Description copied from interface: MessageAudit
        The id of the user that did the modification

        e.g.

        • User 1 creates a message
        • User 2 edits the message
        • User 3 edits the message again

        There will be 2 message audit entries. With the following information:

        • creatorId: User 1, modifierId: User 2
        • creatorId: User 2, modifierId: User 3

        The Message.getUpdaterId() will have User 3

        Specified by:
        getModifierId in interface MessageAudit
        Returns:
        the user id of the modifier