Class MessageAuditEntityImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntity
com.flowable.engage.engine.impl.persistence.entity.AbstractEngageEngineEntity
com.flowable.engage.engine.impl.persistence.entity.MessageAuditEntityImpl
- All Implemented Interfaces:
MessageAuditEntity,MessageAudit,HasRevision,Entity
public class MessageAuditEntityImpl
extends AbstractEngageEngineEntity
implements MessageAuditEntity
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Dateprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected DateFields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe id of the conversation that this media audit belongs toThe creation time of this version of the message.The id of the user that created this version of the message.The main content of the audit.The main content type of the audit.The id of the media content in this audit.The message id that this audit belongs toThe id of the user that did the modificationThe time of the modification.voidsetConversationId(String conversationId) voidsetCreationTime(Date creationTime) voidsetCreatorId(String creatorId) voidsetMainContent(String mainContent) voidsetMainContentType(String mainContentType) voidsetMediaContentId(String mediaContentId) voidsetMessageId(String messageId) voidsetModifierId(String modifierId) voidsetModifyTime(Date modifyTime) Methods inherited from class com.flowable.engage.engine.impl.persistence.entity.AbstractEngageEngineEntity
getIdPrefixMethods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdatedMethods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevisionMethods inherited from interface com.flowable.engage.message.api.MessageAudit
getId
-
Field Details
-
messageId
-
mediaContentId
-
conversationId
-
mainContent
-
mainContentType
-
creationTime
-
creatorId
-
modifyTime
-
modifierId
-
-
Constructor Details
-
MessageAuditEntityImpl
public MessageAuditEntityImpl()
-
-
Method Details
-
getMessageId
Description copied from interface:MessageAuditThe message id that this audit belongs to- Specified by:
getMessageIdin interfaceMessageAudit- Returns:
- the message id
-
setMessageId
- Specified by:
setMessageIdin interfaceMessageAuditEntity
-
getMediaContentId
Description copied from interface:MessageAuditThe id of the media content in this audit.- Specified by:
getMediaContentIdin interfaceMessageAudit- Returns:
- the optional id of a media content
-
setMediaContentId
- Specified by:
setMediaContentIdin interfaceMessageAuditEntity
-
getConversationId
Description copied from interface:MessageAuditThe id of the conversation that this media audit belongs to- Specified by:
getConversationIdin interfaceMessageAudit- Returns:
- the conversation id
-
setConversationId
- Specified by:
setConversationIdin interfaceMessageAuditEntity
-
getMainContent
Description copied from interface:MessageAuditThe main content of the audit.- Specified by:
getMainContentin interfaceMessageAudit- Returns:
- the main content
-
setMainContent
- Specified by:
setMainContentin interfaceMessageAuditEntity
-
getMainContentType
Description copied from interface:MessageAuditThe main content type of the audit.- Specified by:
getMainContentTypein interfaceMessageAudit- Returns:
- the main content type
-
setMainContentType
- Specified by:
setMainContentTypein interfaceMessageAuditEntity
-
getCreationTime
Description copied from interface:MessageAuditThe creation time of this version of the message. This would be either the creation time of aMessageor the update time of aMessageif 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:
getCreationTimein interfaceMessageAudit- Returns:
- the creation time of the message version
-
setCreationTime
- Specified by:
setCreationTimein interfaceMessageAuditEntity
-
getCreatorId
Description copied from interface:MessageAuditThe id of the user that created this version of the message. This would be either the creator of aMessageor the updater of aMessageif the message is being changed multiple timese.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:
getCreatorIdin interfaceMessageAudit- Returns:
- the id of the message version creator
-
setCreatorId
- Specified by:
setCreatorIdin interfaceMessageAuditEntity
-
getModifyTime
Description copied from interface:MessageAuditThe 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:
getModifyTimein interfaceMessageAudit- Returns:
- the modification time
-
setModifyTime
- Specified by:
setModifyTimein interfaceMessageAuditEntity
-
getModifierId
Description copied from interface:MessageAuditThe id of the user that did the modificatione.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:
getModifierIdin interfaceMessageAudit- Returns:
- the user id of the modifier
-
setModifierId
- Specified by:
setModifierIdin interfaceMessageAuditEntity
-
getPersistentState
- Specified by:
getPersistentStatein interfaceEntity
-