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
Fields Modifier and Type Field Description protected String
conversationId
protected Date
creationTime
protected String
creatorId
protected String
mainContent
protected String
mainContentType
protected String
mediaContentId
protected String
messageId
protected String
modifierId
protected Date
modifyTime
-
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
-
Constructor Summary
Constructors Constructor Description MessageAuditEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConversationId()
The id of the conversation that this media audit belongs toDate
getCreationTime()
The creation time of this version of the message.String
getCreatorId()
The id of the user that created this version of the message.String
getMainContent()
The main content of the audit.String
getMainContentType()
The main content type of the audit.String
getMediaContentId()
The id of the media content in this audit.String
getMessageId()
The message id that this audit belongs toString
getModifierId()
The id of the user that did the modificationDate
getModifyTime()
The time of the modification.Object
getPersistentState()
void
setConversationId(String conversationId)
void
setCreationTime(Date creationTime)
void
setCreatorId(String creatorId)
void
setMainContent(String mainContent)
void
setMainContentType(String mainContentType)
void
setMediaContentId(String mediaContentId)
void
setMessageId(String messageId)
void
setModifierId(String modifierId)
void
setModifyTime(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
-
Methods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
-
Methods inherited from interface com.flowable.engage.message.api.MessageAudit
getId
-
-
-
-
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
-
-
Method Detail
-
getMessageId
public 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(String messageId)
- Specified by:
setMessageId
in interfaceMessageAuditEntity
-
getMediaContentId
public 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(String mediaContentId)
- Specified by:
setMediaContentId
in interfaceMessageAuditEntity
-
getConversationId
public 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(String conversationId)
- Specified by:
setConversationId
in interfaceMessageAuditEntity
-
getMainContent
public 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(String mainContent)
- Specified by:
setMainContent
in interfaceMessageAuditEntity
-
getMainContentType
public 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(String mainContentType)
- Specified by:
setMainContentType
in interfaceMessageAuditEntity
-
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 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(Date creationTime)
- Specified by:
setCreationTime
in interfaceMessageAuditEntity
-
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 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(String creatorId)
- Specified by:
setCreatorId
in interfaceMessageAuditEntity
-
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 interfaceMessageAudit
- Returns:
- the modification time
-
setModifyTime
public void setModifyTime(Date modifyTime)
- Specified by:
setModifyTime
in interfaceMessageAuditEntity
-
getModifierId
public 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(String modifierId)
- Specified by:
setModifierId
in interfaceMessageAuditEntity
-
getPersistentState
public Object getPersistentState()
- Specified by:
getPersistentState
in interfaceEntity
-
-