Class CommentEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.entity.CommentEntity
-
- All Implemented Interfaces:
java.io.Serializable,DbEntity,HistoricEntity,Comment,Event
public class CommentEntity extends java.lang.Object implements Comment, Event, DbEntity, HistoricEntity, java.io.Serializable
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringactionprotected java.lang.StringfullMessageprotected java.lang.Stringidprotected java.lang.Stringmessagestatic java.lang.StringMESSAGE_PARTS_MARKERprotected java.lang.StringprocessInstanceIdprotected java.util.DateremovalTimeprotected java.lang.StringrootProcessInstanceIdprotected java.lang.StringtaskIdprotected java.lang.StringtenantIdprotected java.util.Datetimeprotected java.lang.Stringtypestatic java.lang.StringTYPE_COMMENTstatic java.lang.StringTYPE_EVENTprotected java.lang.StringuserId-
Fields inherited from interface org.camunda.bpm.engine.task.Event
ACTION_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 Summary
Constructors Constructor Description CommentEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAction()Indicates the type of of action and also indicates the meaning of the parts as exposed inEvent.getMessageParts()java.lang.StringgetFullMessage()the full comment message the user had related to the task and/or process instancebyte[]getFullMessageBytes()java.lang.StringgetId()comment idjava.lang.StringgetMessage()The message that can be used in case this action only has a single message part.java.util.List<java.lang.String>getMessageParts()The meaning of the message parts is defined by the action as you can find inEvent.getAction()java.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.java.lang.StringgetProcessInstanceId()reference to the process instance on which this comment was madejava.util.DategetRemovalTime()The time the historic comment will be removed.java.lang.StringgetRootProcessInstanceId()reference to the root process instance id of the process instance on which this comment was madejava.lang.StringgetTaskId()reference to the task on which this comment was madejava.lang.StringgetTenantId()java.util.DategetTime()time and date when the user made the commentjava.lang.StringgetType()java.lang.StringgetUserId()reference to the user that made the commentvoidsetAction(java.lang.String action)voidsetFullMessage(java.lang.String fullMessage)voidsetFullMessageBytes(byte[] fullMessageBytes)voidsetId(java.lang.String id)voidsetMessage(java.lang.String message)voidsetMessage(java.lang.String[] messageParts)voidsetProcessInstanceId(java.lang.String processInstanceId)voidsetRemovalTime(java.util.Date removalTime)voidsetRootProcessInstanceId(java.lang.String rootProcessInstanceId)voidsetTaskId(java.lang.String taskId)voidsetTenantId(java.lang.String tenantId)voidsetTime(java.util.Date time)voidsetType(java.lang.String type)voidsetUserId(java.lang.String userId)java.lang.StringtoString()
-
-
-
Field Detail
-
TYPE_EVENT
public static final java.lang.String TYPE_EVENT
- See Also:
- Constant Field Values
-
TYPE_COMMENT
public static final java.lang.String TYPE_COMMENT
- See Also:
- Constant Field Values
-
id
protected java.lang.String id
-
type
protected java.lang.String type
-
userId
protected java.lang.String userId
-
time
protected java.util.Date time
-
taskId
protected java.lang.String taskId
-
processInstanceId
protected java.lang.String processInstanceId
-
action
protected java.lang.String action
-
message
protected java.lang.String message
-
fullMessage
protected java.lang.String fullMessage
-
tenantId
protected java.lang.String tenantId
-
rootProcessInstanceId
protected java.lang.String rootProcessInstanceId
-
removalTime
protected java.util.Date removalTime
-
MESSAGE_PARTS_MARKER
public static java.lang.String MESSAGE_PARTS_MARKER
-
-
Method Detail
-
getPersistentState
public java.lang.Object getPersistentState()
Description 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 interfaceDbEntity
-
getFullMessageBytes
public byte[] getFullMessageBytes()
-
setFullMessageBytes
public void setFullMessageBytes(byte[] fullMessageBytes)
-
setMessage
public void setMessage(java.lang.String[] messageParts)
-
getMessageParts
public java.util.List<java.lang.String> getMessageParts()
Description copied from interface:EventThe meaning of the message parts is defined by the action as you can find inEvent.getAction()- Specified by:
getMessagePartsin interfaceEvent
-
getId
public java.lang.String getId()
Description copied from interface:Commentcomment id
-
getUserId
public java.lang.String getUserId()
Description copied from interface:Commentreference to the user that made the comment
-
setUserId
public void setUserId(java.lang.String userId)
-
getTaskId
public java.lang.String getTaskId()
Description copied from interface:Commentreference to the task on which this comment was made
-
setTaskId
public void setTaskId(java.lang.String taskId)
-
getMessage
public java.lang.String getMessage()
Description copied from interface:EventThe message that can be used in case this action only has a single message part.- Specified by:
getMessagein interfaceEvent
-
setMessage
public void setMessage(java.lang.String message)
-
getTime
public java.util.Date getTime()
Description copied from interface:Commenttime and date when the user made the comment
-
setTime
public void setTime(java.util.Date time)
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
Description copied from interface:Commentreference to the process instance on which this comment was made- Specified by:
getProcessInstanceIdin interfaceComment- Specified by:
getProcessInstanceIdin interfaceEvent
-
setProcessInstanceId
public void setProcessInstanceId(java.lang.String processInstanceId)
-
getType
public java.lang.String getType()
-
setType
public void setType(java.lang.String type)
-
getFullMessage
public java.lang.String getFullMessage()
Description copied from interface:Commentthe full comment message the user had related to the task and/or process instance- Specified by:
getFullMessagein interfaceComment- See Also:
TaskService.getTaskComments(String)
-
setFullMessage
public void setFullMessage(java.lang.String fullMessage)
-
getAction
public java.lang.String getAction()
Description copied from interface:EventIndicates the type of of action and also indicates the meaning of the parts as exposed inEvent.getMessageParts()
-
setAction
public void setAction(java.lang.String action)
-
getTenantId
public java.lang.String getTenantId()
-
setTenantId
public void setTenantId(java.lang.String tenantId)
-
getRootProcessInstanceId
public java.lang.String getRootProcessInstanceId()
Description copied from interface:Commentreference to the root process instance id of the process instance on which this comment was made- Specified by:
getRootProcessInstanceIdin interfaceComment
-
setRootProcessInstanceId
public void setRootProcessInstanceId(java.lang.String rootProcessInstanceId)
-
getRemovalTime
public java.util.Date getRemovalTime()
Description copied from interface:CommentThe time the historic comment will be removed.- Specified by:
getRemovalTimein interfaceComment
-
setRemovalTime
public void setRemovalTime(java.util.Date removalTime)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-