Class CommentEntity
java.lang.Object
org.camunda.bpm.engine.impl.persistence.entity.CommentEntity
- All Implemented Interfaces:
- Serializable,- DbEntity,- HistoricEntity,- Comment,- Event
public class CommentEntity
extends Object
implements Comment, Event, DbEntity, HistoricEntity, Serializable
- Author:
- Tom Baeyens
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringstatic Stringprotected Stringprotected Dateprotected Stringprotected Stringprotected Stringprotected Dateprotected Stringstatic final Stringstatic final Stringprotected StringFields inherited from interface org.camunda.bpm.engine.task.EventACTION_ADD_ATTACHMENT, ACTION_ADD_COMMENT, ACTION_ADD_GROUP_LINK, ACTION_ADD_USER_LINK, ACTION_DELETE_ATTACHMENT, ACTION_DELETE_GROUP_LINK, ACTION_DELETE_USER_LINK
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionIndicates the type of of action and also indicates the meaning of the parts as exposed inEvent.getMessageParts()the full comment message the user had related to the task and/or process instancebyte[]getId()comment idThe message that can be used in case this action only has a single message part.The meaning of the message parts is defined by the action as you can find inEvent.getAction()Returns a representation of the object, as would be stored in the database.reference to the process instance on which this comment was madeThe time the historic comment will be removed.reference to the root process instance id of the process instance on which this comment was madereference to the task on which this comment was madegetTime()time and date when the user made the commentgetType()reference to the user that made the commentvoidvoidsetFullMessage(String fullMessage) voidsetFullMessageBytes(byte[] fullMessageBytes) voidvoidsetMessage(String message) voidsetMessage(String[] messageParts) voidsetProcessInstanceId(String processInstanceId) voidsetRemovalTime(Date removalTime) voidsetRootProcessInstanceId(String rootProcessInstanceId) voidvoidsetTenantId(String tenantId) voidvoidvoidtoString()
- 
Field Details- 
TYPE_EVENT- See Also:
 
- 
TYPE_COMMENT- See Also:
 
- 
id
- 
type
- 
userId
- 
time
- 
taskId
- 
processInstanceId
- 
action
- 
message
- 
fullMessage
- 
tenantId
- 
rootProcessInstanceId
- 
removalTime
- 
MESSAGE_PARTS_MARKER
 
- 
- 
Constructor Details- 
CommentEntitypublic CommentEntity()
 
- 
- 
Method Details- 
getPersistentStateDescription copied from interface:DbEntityReturns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
- getPersistentStatein interface- DbEntity
 
- 
getFullMessageBytespublic byte[] getFullMessageBytes()
- 
setFullMessageBytespublic void setFullMessageBytes(byte[] fullMessageBytes) 
- 
setMessage
- 
getMessagePartsDescription copied from interface:EventThe meaning of the message parts is defined by the action as you can find inEvent.getAction()- Specified by:
- getMessagePartsin interface- Event
 
- 
getIdDescription copied from interface:Commentcomment id
- 
setId
- 
getUserIdDescription copied from interface:Commentreference to the user that made the comment
- 
setUserId
- 
getTaskIdDescription copied from interface:Commentreference to the task on which this comment was made
- 
setTaskId
- 
getMessageDescription copied from interface:EventThe message that can be used in case this action only has a single message part.- Specified by:
- getMessagein interface- Event
 
- 
setMessage
- 
getTimeDescription copied from interface:Commenttime and date when the user made the comment
- 
setTime
- 
getProcessInstanceIdDescription copied from interface:Commentreference to the process instance on which this comment was made- Specified by:
- getProcessInstanceIdin interface- Comment
- Specified by:
- getProcessInstanceIdin interface- Event
 
- 
setProcessInstanceId
- 
getType
- 
setType
- 
getFullMessageDescription copied from interface:Commentthe full comment message the user had related to the task and/or process instance- Specified by:
- getFullMessagein interface- Comment
- See Also:
 
- 
setFullMessage
- 
getActionDescription copied from interface:EventIndicates the type of of action and also indicates the meaning of the parts as exposed inEvent.getMessageParts()
- 
setAction
- 
getTenantId
- 
setTenantId
- 
getRootProcessInstanceIdDescription copied from interface:Commentreference to the root process instance id of the process instance on which this comment was made- Specified by:
- getRootProcessInstanceIdin interface- Comment
 
- 
setRootProcessInstanceId
- 
getRemovalTimeDescription copied from interface:CommentThe time the historic comment will be removed.- Specified by:
- getRemovalTimein interface- Comment
 
- 
setRemovalTime
- 
toString
 
-