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
,org.flowable.common.engine.impl.db.HasRevision
,org.flowable.common.engine.impl.persistence.entity.Entity
public class MessageAuditEntityImpl extends AbstractEngageEngineEntity implements MessageAuditEntity
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
conversationId
protected java.util.Date
creationTime
protected java.lang.String
creatorId
protected java.lang.String
mainContent
protected java.lang.String
mainContentType
protected java.lang.String
mediaContentId
protected java.lang.String
messageId
protected java.lang.String
modifierId
protected java.util.Date
modifyTime
-
Constructor Summary
Constructors Constructor Description MessageAuditEntityImpl()
-
Method Summary
Modifier and Type Method Description java.lang.String
getConversationId()
The id of the conversation that this media audit belongs tojava.util.Date
getCreationTime()
The creation time of this version of the message.java.lang.String
getCreatorId()
The id of the user that created this version of the message.java.lang.String
getMainContent()
The main content of the audit.java.lang.String
getMainContentType()
The main content type of the audit.java.lang.String
getMediaContentId()
The id of the media content in this audit.java.lang.String
getMessageId()
The message id that this audit belongs tojava.lang.String
getModifierId()
The id of the user that did the modificationjava.util.Date
getModifyTime()
The time of the modification.java.lang.Object
getPersistentState()
void
setConversationId(java.lang.String conversationId)
void
setCreationTime(java.util.Date creationTime)
void
setCreatorId(java.lang.String creatorId)
void
setMainContent(java.lang.String mainContent)
void
setMainContentType(java.lang.String mainContentType)
void
setMediaContentId(java.lang.String mediaContentId)
void
setMessageId(java.lang.String messageId)
void
setModifierId(java.lang.String modifierId)
void
setModifyTime(java.util.Date modifyTime)
Methods inherited from class com.flowable.engage.engine.impl.persistence.entity.AbstractEngageEngineEntity
getIdPrefix
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdated
-
Field Details
-
messageId
protected java.lang.String messageId -
mediaContentId
protected java.lang.String mediaContentId -
conversationId
protected java.lang.String conversationId -
mainContent
protected java.lang.String mainContent -
mainContentType
protected java.lang.String mainContentType -
creationTime
protected java.util.Date creationTime -
creatorId
protected java.lang.String creatorId -
modifyTime
protected java.util.Date modifyTime -
modifierId
protected java.lang.String modifierId
-
-
Constructor Details
-
MessageAuditEntityImpl
public MessageAuditEntityImpl()
-
-
Method Details
-
getMessageId
public java.lang.String getMessageId()Description copied from interface:MessageAudit
The message id that this audit belongs to- Specified by:
getMessageId
in interfaceMessageAudit
- Returns:
- the message id
-
setMessageId
public void setMessageId(java.lang.String messageId)- Specified by:
setMessageId
in interfaceMessageAuditEntity
-
getMediaContentId
public java.lang.String getMediaContentId()Description copied from interface:MessageAudit
The id of the media content in this audit.- Specified by:
getMediaContentId
in interfaceMessageAudit
- Returns:
- the optional id of a media content
-
setMediaContentId
public void setMediaContentId(java.lang.String mediaContentId)- Specified by:
setMediaContentId
in interfaceMessageAuditEntity
-
getConversationId
public java.lang.String getConversationId()Description copied from interface:MessageAudit
The id of the conversation that this media audit belongs to- Specified by:
getConversationId
in interfaceMessageAudit
- Returns:
- the conversation id
-
setConversationId
public void setConversationId(java.lang.String conversationId)- Specified by:
setConversationId
in interfaceMessageAuditEntity
-
getMainContent
public java.lang.String getMainContent()Description copied from interface:MessageAudit
The main content of the audit.- Specified by:
getMainContent
in interfaceMessageAudit
- Returns:
- the main content
-
setMainContent
public void setMainContent(java.lang.String mainContent)- Specified by:
setMainContent
in interfaceMessageAuditEntity
-
getMainContentType
public java.lang.String getMainContentType()Description copied from interface:MessageAudit
The main content type of the audit.- Specified by:
getMainContentType
in interfaceMessageAudit
- Returns:
- the main content type
-
setMainContentType
public void setMainContentType(java.lang.String mainContentType)- Specified by:
setMainContentType
in interfaceMessageAuditEntity
-
getCreationTime
public java.util.Date getCreationTime()Description copied from interface:MessageAudit
The creation time of this version of the message. This would be either the creation time of aMessage
or the update time of aMessage
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 interfaceMessageAudit
- Returns:
- the creation time of the message version
-
setCreationTime
public void setCreationTime(java.util.Date creationTime)- Specified by:
setCreationTime
in interfaceMessageAuditEntity
-
getCreatorId
public java.lang.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 aMessage
or the updater of aMessage
if 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:
getCreatorId
in interfaceMessageAudit
- Returns:
- the id of the message version creator
-
setCreatorId
public void setCreatorId(java.lang.String creatorId)- Specified by:
setCreatorId
in interfaceMessageAuditEntity
-
getModifyTime
public java.util.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 interfaceMessageAudit
- Returns:
- the modification time
-
setModifyTime
public void setModifyTime(java.util.Date modifyTime)- Specified by:
setModifyTime
in interfaceMessageAuditEntity
-
getModifierId
public java.lang.String getModifierId()Description copied from interface:MessageAudit
The 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:
getModifierId
in interfaceMessageAudit
- Returns:
- the user id of the modifier
-
setModifierId
public void setModifierId(java.lang.String modifierId)- Specified by:
setModifierId
in interfaceMessageAuditEntity
-
getPersistentState
public java.lang.Object getPersistentState()- Specified by:
getPersistentState
in interfaceorg.flowable.common.engine.impl.persistence.entity.Entity
-