Class CommentEntityImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.persistence.entity.AbstractEntityNoRevision
-
- org.flowable.engine.impl.persistence.entity.AbstractBpmnEngineNoRevisionEntity
-
- org.flowable.engine.impl.persistence.entity.CommentEntityImpl
-
- All Implemented Interfaces:
Serializable,HistoricData,Entity,CommentEntity,Comment,Event
public class CommentEntityImpl extends AbstractBpmnEngineNoRevisionEntity implements CommentEntity, Serializable
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringactionprotected StringfullMessageprotected Stringmessagestatic StringMESSAGE_PARTS_MARKERstatic PatternMESSAGE_PARTS_MARKER_REGEXprotected StringprocessInstanceIdprotected StringtaskIdprotected Datetimeprotected Stringtypeprotected StringuserId-
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntityNoRevision
id, isDeleted, isInserted, isUpdated, originalPersistentState
-
Fields inherited from interface org.flowable.engine.impl.persistence.entity.CommentEntity
TYPE_COMMENT, TYPE_EVENT
-
Fields inherited from interface org.flowable.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 CommentEntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAction()Indicates the type of of action and also indicates the meaning of the parts as exposed inEvent.getMessageParts()StringgetFullMessage()the full comment message the user had related to the task and/or process instancebyte[]getFullMessageBytes()StringgetMessage()The message that can be used in case this action only has a single message part.List<String>getMessageParts()The meaning of the message parts is defined by the action as you can find inEvent.getAction()ObjectgetPersistentState()StringgetProcessInstanceId()reference to the process instance on which this comment was madeStringgetTaskId()reference to the task on which this comment was madeDategetTime()time and date when the user made the commentStringgetType()reference to the type given to the commentStringgetUserId()reference to the user that made the commentvoidsetAction(String action)voidsetFullMessage(String fullMessage)voidsetFullMessageBytes(byte[] fullMessageBytes)voidsetMessage(String message)voidsetMessage(String[] messageParts)voidsetProcessInstanceId(String processInstanceId)voidsetTaskId(String taskId)voidsetTime(Date time)voidsetType(String type)voidsetUserId(String userId)-
Methods inherited from class org.flowable.engine.impl.persistence.entity.AbstractBpmnEngineNoRevisionEntity
getIdPrefix
-
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntityNoRevision
getId, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, 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 Detail
-
type
protected String type
-
userId
protected String userId
-
time
protected Date time
-
taskId
protected String taskId
-
processInstanceId
protected String processInstanceId
-
action
protected String action
-
message
protected String message
-
fullMessage
protected String fullMessage
-
MESSAGE_PARTS_MARKER
public static final String MESSAGE_PARTS_MARKER
- See Also:
- Constant Field Values
-
MESSAGE_PARTS_MARKER_REGEX
public static final Pattern MESSAGE_PARTS_MARKER_REGEX
-
-
Method Detail
-
getPersistentState
public Object getPersistentState()
- Specified by:
getPersistentStatein interfaceEntity
-
getFullMessageBytes
public byte[] getFullMessageBytes()
- Specified by:
getFullMessageBytesin interfaceCommentEntity
-
setFullMessageBytes
public void setFullMessageBytes(byte[] fullMessageBytes)
- Specified by:
setFullMessageBytesin interfaceCommentEntity
-
setMessage
public void setMessage(String[] messageParts)
- Specified by:
setMessagein interfaceCommentEntity
-
getMessageParts
public List<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
-
getUserId
public String getUserId()
Description copied from interface:Commentreference to the user that made the comment
-
getTaskId
public String getTaskId()
Description copied from interface:Commentreference to the task on which this comment was made
-
getMessage
public 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(String message)
- Specified by:
setMessagein interfaceCommentEntity
-
getTime
public Date getTime()
Description copied from interface:Commenttime and date when the user made the comment
-
getProcessInstanceId
public 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(String processInstanceId)
- Specified by:
setProcessInstanceIdin interfaceComment
-
getType
public String getType()
Description copied from interface:Commentreference to the type given to the comment
-
getFullMessage
public 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(String fullMessage)
- Specified by:
setFullMessagein interfaceComment
-
getAction
public 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(String action)
- Specified by:
setActionin interfaceCommentEntity
-
-