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.String
action
protected java.lang.String
fullMessage
protected java.lang.String
id
protected java.lang.String
message
static java.lang.String
MESSAGE_PARTS_MARKER
protected java.lang.String
processInstanceId
protected java.util.Date
removalTime
protected java.lang.String
rootProcessInstanceId
protected java.lang.String
taskId
protected java.lang.String
tenantId
protected java.util.Date
time
protected java.lang.String
type
static java.lang.String
TYPE_COMMENT
static java.lang.String
TYPE_EVENT
protected java.lang.String
userId
-
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.String
getAction()
Indicates the type of of action and also indicates the meaning of the parts as exposed inEvent.getMessageParts()
java.lang.String
getFullMessage()
the full comment message the user had related to the task and/or process instancebyte[]
getFullMessageBytes()
java.lang.String
getId()
comment idjava.lang.String
getMessage()
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.Object
getPersistentState()
Returns a representation of the object, as would be stored in the database.java.lang.String
getProcessInstanceId()
reference to the process instance on which this comment was madejava.util.Date
getRemovalTime()
The time the historic comment will be removed.java.lang.String
getRootProcessInstanceId()
reference to the root process instance id of the process instance on which this comment was madejava.lang.String
getTaskId()
reference to the task on which this comment was madejava.lang.String
getTenantId()
java.util.Date
getTime()
time and date when the user made the commentjava.lang.String
getType()
java.lang.String
getUserId()
reference to the user that made the commentvoid
setAction(java.lang.String action)
void
setFullMessage(java.lang.String fullMessage)
void
setFullMessageBytes(byte[] fullMessageBytes)
void
setId(java.lang.String id)
void
setMessage(java.lang.String message)
void
setMessage(java.lang.String[] messageParts)
void
setProcessInstanceId(java.lang.String processInstanceId)
void
setRemovalTime(java.util.Date removalTime)
void
setRootProcessInstanceId(java.lang.String rootProcessInstanceId)
void
setTaskId(java.lang.String taskId)
void
setTenantId(java.lang.String tenantId)
void
setTime(java.util.Date time)
void
setType(java.lang.String type)
void
setUserId(java.lang.String userId)
java.lang.String
toString()
-
-
-
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:DbEntity
Returns 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:
getPersistentState
in 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:Event
The meaning of the message parts is defined by the action as you can find inEvent.getAction()
- Specified by:
getMessageParts
in interfaceEvent
-
getId
public java.lang.String getId()
Description copied from interface:Comment
comment id
-
getUserId
public java.lang.String getUserId()
Description copied from interface:Comment
reference 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:Comment
reference 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:Event
The message that can be used in case this action only has a single message part.- Specified by:
getMessage
in interfaceEvent
-
setMessage
public void setMessage(java.lang.String message)
-
getTime
public java.util.Date getTime()
Description copied from interface:Comment
time 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:Comment
reference to the process instance on which this comment was made- Specified by:
getProcessInstanceId
in interfaceComment
- Specified by:
getProcessInstanceId
in 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:Comment
the full comment message the user had related to the task and/or process instance- Specified by:
getFullMessage
in interfaceComment
- See Also:
TaskService.getTaskComments(String)
-
setFullMessage
public void setFullMessage(java.lang.String fullMessage)
-
getAction
public java.lang.String getAction()
Description copied from interface:Event
Indicates 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:Comment
reference to the root process instance id of the process instance on which this comment was made- Specified by:
getRootProcessInstanceId
in interfaceComment
-
setRootProcessInstanceId
public void setRootProcessInstanceId(java.lang.String rootProcessInstanceId)
-
getRemovalTime
public java.util.Date getRemovalTime()
Description copied from interface:Comment
The time the historic comment will be removed.- Specified by:
getRemovalTime
in interfaceComment
-
setRemovalTime
public void setRemovalTime(java.util.Date removalTime)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-